You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ReferenceGuides/UnderscoredAttributes.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -825,3 +825,8 @@ also locks.
825
825
Marks a synchronous API as being unavailable from asynchronous contexts. Direct
826
826
usage of annotated API from asynchronous contexts will result in a warning from
827
827
the compiler.
828
+
829
+
## `@_unsafeInheritExecutor`
830
+
831
+
This `async` function uses the pre-SE-0338 semantics of unsafely inheriting the caller's executor. This is an underscored feature because the right way of inheriting an executor is to pass in the required executor and switch to it. Unfortunately, there are functions in the standard library which need to inherit their caller's executor but cannot change their ABI because they were not defined as `@_alwaysEmitIntoClient` in the initial release.
0 commit comments