Pavel Yaskevich
95d4ef5756
[Concurrency] Remove deprecated Task.startSynchronously API
...
This is the original spelling which was not accepted. We kept
it for a bit to give adopters time to switch but it's time to
remove it now.
2025-07-25 13:15:02 -07:00
Konrad 'ktoso' Malawski
5996da0c0c
[Concurrency] Remove symbols of startSynchronously, make it AEIC
...
In preparation for removal. This spelling of Task.immediate was before
SE-review and was NOT accepted and therefore we should try to remove it
entirely.
2025-07-10 17:34:29 +09:00
Konrad 'ktoso' Malawski
664be9bd1e
[Concurrency] Add missing Task.immediateDetached, which drops task locals
2025-07-10 14:57:44 +09:00
Konrad 'ktoso' Malawski
358c3e9dcf
[Concurrency] a few missing overloads for immediate tasks
2025-07-10 12:40:41 +09:00
Pavel Yaskevich
8c4f7e97c8
Revert "[Concurrency] Remove deprecated Task.startSynchronously API"
2025-07-08 13:54:23 -07:00
Pavel Yaskevich
e108524d98
[Concurrency] Remove deprecated Task.startSynchronously API
...
This is the original spelling which was not accepted. We kept
it for a bit to give adopters time to switch but it's time to
remove it now.
2025-07-07 00:31:19 -07:00
Konrad 'ktoso' Malawski
57a6a9931a
[Concurrency] Task.immediate returning Never error must not have throwing operation
...
rdar://153855920
2025-06-20 09:32:37 +09:00
Konrad 'ktoso' Malawski
3aa28b4de9
[Concurrency] Correct memory effect attributes of task_create
...
Without this, llvm would sometimes wrongly assume there's no indirect
accesses and the optimizations can lead to a runtime crash, by
optimizing away initializing options properly.
Resolves rdar://152548190
2025-06-11 22:03:52 +09:00
Pavel Yaskevich
5059f81da0
[Concurrent] Restored old symbol for obsoleted Task.startSynchronously
...
https://github.com/swiftlang/swift/pull/80821 added `@isolated(any)`
which is an ABI breaking change but since we are not planning to keep
this API around, let's use `@_silgen_name` to bring the old name back
for now.
Resolves: rdar://152178221
2025-05-28 14:27:02 -07:00
Pavel Yaskevich
0598b8c9f4
[stdlib] Task.immediate annotate operation parameter with @_implicitSelfCapture
...
Since the "operation" inherits the context of the actor it should
also be possible to reference its members without explicit use of
`self.`.
2025-05-19 18:01:23 -07:00
Pavel Yaskevich
8c05636e28
[stdlib] Concurrency: Add @_alwaysEmitIntoClient to add Task.*immediate*
2025-05-19 18:01:07 -07:00
Pavel Yaskevich
c3c1b4fca0
[stdlib] Adopt @_inheritActorContext(always) on Task.immediate
...
This change aligns implementation with the current SE-0472 proposal.
2025-05-16 14:27:46 -07:00
Pavel Yaskevich
99d810aa7d
[stdlib] Temporarily bring back Task.startSynchronously as deprecated
2025-05-09 23:59:36 -07:00
Pavel Yaskevich
001eab867d
[stdlib] SE-0472: Rename Task and*TaskGroup APIs to match the proposal
...
`Task.startSynchronously` -> `Task.immediate`
`*TaskGroup.startTaskSynchronously{UnlessCancelled}` -> `*TaskGroup.addImmediateTask{UnlessCancelled}`
2025-05-09 23:59:30 -07:00