@@ -7,9 +7,10 @@ extension JavaScriptEventLoop {
77
88 static func installByLegacyHook( ) {
99 #if compiler(>=5.9)
10- typealias swift_task_asyncMainDrainQueue_hook_Fn = @convention ( thin) (
11- swift_task_asyncMainDrainQueue_original , swift_task_asyncMainDrainQueue_override
12- ) -> Void
10+ typealias swift_task_asyncMainDrainQueue_hook_Fn =
11+ @convention ( thin) (
12+ swift_task_asyncMainDrainQueue_original , swift_task_asyncMainDrainQueue_override
13+ ) -> Void
1314 let swift_task_asyncMainDrainQueue_hook_impl : swift_task_asyncMainDrainQueue_hook_Fn = { _, _ in
1415 swjs_unsafe_event_loop_yield ( )
1516 }
@@ -19,7 +20,8 @@ extension JavaScriptEventLoop {
1920 )
2021 #endif
2122
22- typealias swift_task_enqueueGlobal_hook_Fn = @convention ( thin) ( UnownedJob , swift_task_enqueueGlobal_original )
23+ typealias swift_task_enqueueGlobal_hook_Fn =
24+ @convention ( thin) ( UnownedJob , swift_task_enqueueGlobal_original )
2325 -> Void
2426 let swift_task_enqueueGlobal_hook_impl : swift_task_enqueueGlobal_hook_Fn = { job, original in
2527 JavaScriptEventLoop . shared. unsafeEnqueue ( job)
@@ -29,9 +31,10 @@ extension JavaScriptEventLoop {
2931 to: UnsafeMutableRawPointer ? . self
3032 )
3133
32- typealias swift_task_enqueueGlobalWithDelay_hook_Fn = @convention ( thin) (
33- UInt64 , UnownedJob , swift_task_enqueueGlobalWithDelay_original
34- ) -> Void
34+ typealias swift_task_enqueueGlobalWithDelay_hook_Fn =
35+ @convention ( thin) (
36+ UInt64 , UnownedJob , swift_task_enqueueGlobalWithDelay_original
37+ ) -> Void
3538 let swift_task_enqueueGlobalWithDelay_hook_impl : swift_task_enqueueGlobalWithDelay_hook_Fn = {
3639 nanoseconds,
3740 job,
@@ -45,9 +48,10 @@ extension JavaScriptEventLoop {
4548 )
4649
4750 #if compiler(>=5.7)
48- typealias swift_task_enqueueGlobalWithDeadline_hook_Fn = @convention ( thin) (
49- Int64 , Int64 , Int64 , Int64 , Int32 , UnownedJob , swift_task_enqueueGlobalWithDelay_original
50- ) -> Void
51+ typealias swift_task_enqueueGlobalWithDeadline_hook_Fn =
52+ @convention ( thin) (
53+ Int64 , Int64 , Int64 , Int64 , Int32 , UnownedJob , swift_task_enqueueGlobalWithDelay_original
54+ ) -> Void
5155 let swift_task_enqueueGlobalWithDeadline_hook_impl : swift_task_enqueueGlobalWithDeadline_hook_Fn = {
5256 sec,
5357 nsec,
@@ -64,9 +68,10 @@ extension JavaScriptEventLoop {
6468 )
6569 #endif
6670
67- typealias swift_task_enqueueMainExecutor_hook_Fn = @convention ( thin) (
68- UnownedJob , swift_task_enqueueMainExecutor_original
69- ) -> Void
71+ typealias swift_task_enqueueMainExecutor_hook_Fn =
72+ @convention ( thin) (
73+ UnownedJob , swift_task_enqueueMainExecutor_original
74+ ) -> Void
7075 let swift_task_enqueueMainExecutor_hook_impl : swift_task_enqueueMainExecutor_hook_Fn = { job, original in
7176 JavaScriptEventLoop . shared. unsafeEnqueue ( job)
7277 }
0 commit comments