Konrad `ktoso` Malawski
34f8e768b5
spawnDetached to detach, non-suspending group.spawn, spawnUnlessCancelled
2021-04-03 09:53:32 +09:00
Konrad `ktoso` Malawski
6e746304e1
[Concurrency] Update Task and Group APIs based on Review 1
2021-04-03 09:52:03 +09:00
Mike Ash
1173b737aa
[Concurrency] Add availability to Concurrency APIs.
...
This allows programs to target older OSes while using Concurrency behind an availability check. When targeting older OSes, the symbols are weak-linked and the compiler will require the use of Concurrency features to be guarded by an availability check.
rdar://75850003
2021-04-01 10:42:08 -04:00
Karoy Lorentey
24aca4072a
[test] Skip concurrency tests during back deployment testing
...
rdar://76038845
2021-03-30 22:35:38 -07:00
Doug Gregor
52096a640e
SE-0302: Rename ConcurrentValue/@concurrent to Sendable/@Sendable.
2021-03-18 23:48:21 -07:00
Dario Rexin
14ab1a233f
Cleanup after rebase
2021-03-04 09:37:59 -08:00
Dario Rexin
28ce3d97f9
Use async sleep in concurrency tests
2021-03-04 09:37:58 -08:00
Konrad `ktoso` Malawski
6e525d7469
Merge branch 'main' into wip-no-escape-group
2021-02-25 10:37:20 +09:00
Konrad `ktoso` Malawski
dd9a9a6436
[Concurrency] Task APIs use thread-local ActiveTask now
2021-02-24 19:19:44 +09:00
Konrad `ktoso` Malawski
5e92d71d3f
missing import
2021-02-22 13:26:38 +09:00
Konrad `ktoso` Malawski
999758cc85
[Concurrency][TaskGroup] allow cancelAll be invoked from child tasks
2021-02-22 13:26:33 +09:00
Konrad `ktoso` Malawski
bd67b97b26
[Concurrency] Avoid importing Foundation in concurrency tests
2021-02-22 13:26:33 +09:00
Konrad `ktoso` Malawski
efc7d8e627
[Concurrency] rearrange layout of AsyncTask now that task locals and groups coexist
2021-02-22 13:26:33 +09:00
Saleem Abdulrasool
c20b0a5a88
test: repair the test on Windows
...
`sleep` is not portable as it is not part of the C standard. Use the
platform specific sleep function.
2021-02-12 08:17:32 -08:00
Konrad `ktoso` Malawski
a55ebff942
[Concurrency] deprecate not implemented Task functions, until they're implemented
2021-02-12 16:33:16 +09:00
Konrad `ktoso` Malawski
e7cfc8c018
[Concurency] Improve priority testing, including multi-task escalation
2021-02-12 09:06:17 +09:00
Konrad `ktoso` Malawski
08de933288
[Concurrency] Task revisions 3
...
- introduce UnsafeCurrentTask
- implement Hashable, Equatable on tasks
- assume we'll have a way to get a task from sync context
- Task.Handle now has a Failure type as well
- Task.Handle.getResult
2021-02-12 09:06:17 +09:00
Nate Chandler
798f86981f
[Test] Replaced runAsyncAndBlock with async @main.
...
The last outstanding usage is in
Concurrency/Runtime/checked_continuation.swift
2021-01-28 17:14:55 -08:00
Konrad `ktoso` Malawski
b267778bf1
Rebased to use new global executor
2020-12-17 06:05:13 +09:00
Konrad `ktoso` Malawski
520b513e8a
[Concurrency] Task: isCancelled,checkCancelled implementation
...
move comments to the wired up continuations
remove duplicated continuations; leep the wired up ones
before moving to C++ for queue impl
trying to next wait via channel_poll
submitting works; need to impl next()
2020-12-17 06:05:13 +09:00