Commit Graph

1607 Commits

Author SHA1 Message Date
Max Desiatov
bfbc0debc9 [NFC] stdlib: fix use of __owned in deprecation messages (#69995)
`consuming` is the actual parameter ownership modifier used in the non-deprecated declaration.
2023-11-27 09:40:04 +00:00
Konrad `ktoso` Malawski
f58a46fece Merge pull request #69671 from Jager-yoo/typos-concurrency 2023-11-27 13:38:23 +09:00
Kuba Mracek
a69e6f9374 [embedded] Avoid passing -D__APPLE__ on Linux builds 2023-11-17 21:35:59 -08:00
Kuba Mracek
971ad79f37 [embedded] Start building embedded support on Linux/ELF, expand archs of the embedded stdlib to cover common embedded targets 2023-11-17 21:30:12 -08:00
Choo Hyun Ho
630d4306b5 correct typos in Concurrency/Task.swift 2023-11-16 20:45:20 +09:00
Choo Hyun Ho
4100b6aeb8 correct typos 2023-11-15 19:48:58 +09:00
Jaeho Yoo
391eee0625 [Concurrency] Fix some typos in PartialAsyncTask 2023-11-07 01:16:37 +09:00
Konrad `ktoso` Malawski
ad30745994 Merge pull request #69669 from ktoso/wip-docs-remove-misleading
[Docs][TaskLocal] Remove comment which is true, but is confusing to end users
2023-11-06 22:52:46 +09:00
Konrad `ktoso` Malawski
68ccbcee5e [TaskLocal] Remove comment which is true, but is confusing to end users
because it discusses an implementation detail of the type the comment is
on. Instead, when developers read comments they think about what they
can store inside a task local -- so the comment about "task local must
be a class" led them to believe THEIR types must be classes, while the
comment was explaining the implementation detail of `class
TaskLocal<T>`.

Resolves rdar://117982608
2023-11-06 19:02:59 +09:00
swift-ci
43634590b1 Merge pull request #69568 from ktoso/wip-prepare-task-executor-protocol
Task Executors: Prepare for new TaskExecutor protocol
2023-11-02 01:50:51 -07:00
Konrad `ktoso` Malawski
c29bffd2be remove buildOrdinaryTaskExecutorRef until we need it 2023-11-02 15:50:43 +09:00
Konrad `ktoso` Malawski
5546f4da7b Rename ExecutorRef to SerialExecutorRef 2023-11-01 18:39:44 +09:00
Konrad `ktoso` Malawski
9e75142911 Task Executors: Prepare for new TaskExecutor protocol & builtins 2023-11-01 16:02:39 +09:00
Konrad `ktoso` Malawski
a3b4e90bb2 [Concurrency] Un-deprecate enqueue(UnownedJob) for easier adoption.
With this deprecation emitted by the compiler some codebases that
support many old Swift versions have been forced into warnings they
cannot avoid due to the compatibility promises they made.

This removes the warning but changes no functionality.
2023-10-31 17:59:57 +09:00
Kuba (Brecka) Mracek
7e9013dd52 Merge pull request #69090 from kubamracek/embedded-actors-and-async-let
[embedded] Add support for actors and async let into the embedded Concurrency runtime
2023-10-15 13:37:35 -07:00
Kuba (Brecka) Mracek
e719e239f1 Merge pull request #69172 from kubamracek/embedded-concurrency-fragile
[embedded] Mark embedded Concurrency as IS_FRAGILE (no library evolution)
2023-10-13 18:32:26 -07:00
Kuba Mracek
04344c9a7e [embedded] Mark embedded Concurrency as IS_FRAGILE (no library evolution) 2023-10-13 10:15:24 -07:00
Kuba Mracek
f0f4aaf120 [embedded] Don't build embedded Concurrency without SwiftCompilerSources 2023-10-13 09:02:31 -07:00
Kuba Mracek
90e1d2006f [embedded] Add support for actors and async let into the embedded Concurrency runtime 2023-10-09 22:43:50 -07:00
Kuba Mracek
6264386b37 [embedded] Do not build the embedded Concurrency module without an optimized stdlib 2023-10-07 22:25:19 -07:00
Kuba Mracek
df5879746c [embedded] Use async main in the test 2023-10-06 20:32:21 -07:00
Kuba Mracek
afa1427bca [embedded] Fix build breakage in swift_task_run_inline related to ResultTypeInfo 2023-10-06 20:04:03 -07:00
Kuba Mracek
744f558e9c [embedded] Don't allow ResultTypeInfoTaskOptionRecord parsing outside embedded Swift 2023-10-06 20:04:03 -07:00
Kuba Mracek
b9fe308567 [embedded] Remove unintentional whitespace change 2023-10-06 20:04:03 -07:00
Kuba Mracek
a1f0782c0c [embedded] Add null checks of futureResultType back (allow non-future tasks) 2023-10-06 20:04:03 -07:00
Kuba Mracek
5d8c55eacb [embedded] Initial Swift Concurrency for embedded Swift 2023-10-06 20:04:03 -07:00
Yuta Saito
87e7030e3c [wasm][stdlib] Don't use <thread> sleep API with swift-threading-package=none
Unfortunately `sleep_until` is defined under <thread> header even though
it does not use thread feature at all with `std::chrono::steady_clock`.
The <thread> header in libcxx is not available when thread feature is
disabled, so we need to fallback to nanosleep for the case.
2023-10-06 01:01:53 +00:00
Alex Martini
e8d86e879e Minor adjustments for Apple style. 2023-09-27 13:31:17 -07:00
Alex Martini
ecdac2e5ae Remove stray whitespace at end of line. 2023-09-27 13:29:54 -07:00
Konrad `ktoso` Malawski
62ffc9f025 Fix cut off sentence and correct Throwing discarding task group docs
We cut off a sentence, this corrects that issue.

resolves rdar://115519046
2023-09-27 12:48:34 +09:00
Konrad `ktoso` Malawski
911f0f9787 update wording 2023-09-13 12:37:56 +09:00
Konrad `ktoso` Malawski
906d89fb81 Update stdlib/public/Concurrency/Task.swift
Co-authored-by: Alex Martini <amartini@apple.com>
2023-09-13 12:18:40 +09:00
Konrad `ktoso` Malawski
52ab95f2db Update stdlib/public/Concurrency/Task.swift
Co-authored-by: Alex Martini <amartini@apple.com>
2023-09-13 11:33:42 +09:00
Konrad `ktoso` Malawski
d45d56bfbd Update stdlib/public/Concurrency/Task.swift
Co-authored-by: Alex Martini <amartini@apple.com>
2023-09-13 11:33:32 +09:00
Konrad `ktoso` Malawski
11b6bd0396 better example 2023-09-12 21:34:50 +09:00
Konrad `ktoso` Malawski
1e7e5181ab Document more explicitly closure lifetime of a Task init 2023-09-12 21:02:28 +09:00
Pavel Yaskevich
c75aea3654 Merge pull request #68390 from xedin/checked-continuations-for-foreign-callbacks
Provide ability to use CheckedContinuation when suspending for an async ObjC call
2023-09-08 18:52:04 -07:00
Allan Shortlidge
b4f3a9fb06 NFC: Address warnings about unused functions. 2023-09-07 18:09:19 -07:00
Pavel Yaskevich
6e48d449e8 [SILGen] NFC: Introduce intrinsics for construction and resumption of CheckedContinuation 2023-09-07 17:35:38 -07:00
Nate Chandler
9583f9c836 [Gardening] Deleted unreachable fatalError.
Silenced a warning.
2023-09-06 17:49:09 -07:00
Allan Shortlidge
5cc7fff4ca Concurrency: Restore consume in TaskLocal.withValueImpl<R>(_:operation:).
It is no longer necessary to avoid using the `consume` keyword in inlinable
function bodies in the standard library in order to support older compilers.

Partially reverts https://github.com/apple/swift/pull/65599.

Resolves rdar://109165937.
2023-08-14 22:19:56 -07:00
swift-ci
9668f0442f Merge pull request #67590 from ktoso/wip-multi-error-group-single-leak
[TaskGroup] Fix unlock order, add missing detaches and add more assertions
2023-08-10 07:28:38 -07:00
Konrad `ktoso` Malawski
1195955647 Review feedback: add better code comments 2023-08-10 21:16:09 +09:00
Konrad `ktoso` Malawski
e1e81d54e3 Merge pull request #67773 from amartini51/checked_cont_typo_113502204 2023-08-09 15:44:22 +09:00
Konrad `ktoso` Malawski
8aa70dc733 cleanup for freestanding mode 2023-08-09 13:08:04 +09:00
Konrad `ktoso` Malawski
7d93bba7df cleanups 2023-08-09 12:47:01 +09:00
Konrad `ktoso` Malawski
060260e959 make use of unreachable 2023-08-09 08:44:12 +09:00
Konrad `ktoso` Malawski
383c62f731 disable debugging tricks 2023-08-09 08:44:12 +09:00
Konrad `ktoso` Malawski
61d783c5b3 revamping locking scheme, test this a bunch 2023-08-09 08:44:11 +09:00
Konrad `ktoso` Malawski
b135ecd8f6 [TaskGroup] Must detach discarded task, THEN unlock before resume waiting 2023-08-09 08:44:11 +09:00