@@ -342,12 +342,10 @@ extension Actor {
342342 /// - Returns: the return value of the `operation`
343343 /// - Throws: rethrows the `Error` thrown by the operation if it threw
344344 @available ( SwiftStdlib 5 . 1 , * )
345- #if !$Embedded
346- @backDeployed ( before: SwiftStdlib 5.9 )
347- #endif
345+ @_alwaysEmitIntoClient
348346 @_unavailableFromAsync ( message: " express the closure as an explicit function declared on the specified 'actor' instead " )
349347 @_unavailableInEmbedded
350- public nonisolated func assumeIsolated< T> (
348+ public nonisolated func assumeIsolated< T : Sendable > (
351349 _ operation: ( isolated Self) throws -> T ,
352350 file: StaticString = #fileID, line: UInt = #line
353351 ) rethrows -> T {
@@ -373,6 +371,17 @@ extension Actor {
373371 fatalError ( " unsupported compiler " )
374372 #endif
375373 }
374+
375+ @available ( SwiftStdlib 5 . 9 , * )
376+ @usableFromInline
377+ @_unavailableInEmbedded
378+ @_silgen_name ( " $sScAsE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKlF " )
379+ internal nonisolated func __abi__assumeIsolated< T : Sendable > (
380+ _ operation: ( isolated Self) throws -> T ,
381+ _ file: StaticString , _ line: UInt
382+ ) rethrows -> T {
383+ try assumeIsolated ( operation, file: file, line: line)
384+ }
376385}
377386
378387#endif // not SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
0 commit comments