@@ -97,7 +97,9 @@ public final class JSPromise: JSBridgedClass {
9797 /// Schedules the `success` closure to be invoked on successful completion of `self`.
9898 @available ( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * )
9999 @discardableResult
100- public func then( success: sending @escaping ( sending JSValue) async throws -> some ConvertibleToJSValue ) -> JSPromise {
100+ public func then(
101+ success: sending @escaping ( sending JSValue) async throws -> some ConvertibleToJSValue
102+ ) -> JSPromise {
101103 let closure = JSOneshotClosure . async {
102104 try await success ( $0 [ 0 ] ) . jsValue
103105 }
@@ -140,7 +142,9 @@ public final class JSPromise: JSBridgedClass {
140142
141143 /// Schedules the `failure` closure to be invoked on rejected completion of `self`.
142144 @discardableResult
143- public func `catch`( failure: @escaping ( sending JSValue) -> some ConvertibleToJSValue )
145+ public func `catch`(
146+ failure: @escaping ( sending JSValue) -> some ConvertibleToJSValue
147+ )
144148 -> JSPromise
145149 {
146150 let closure = JSOneshotClosure {
@@ -153,8 +157,9 @@ public final class JSPromise: JSBridgedClass {
153157 /// Schedules the `failure` closure to be invoked on rejected completion of `self`.
154158 @available ( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * )
155159 @discardableResult
156- public func `catch`( failure: sending @escaping ( sending JSValue) async throws -> some ConvertibleToJSValue ) -> JSPromise
157- {
160+ public func `catch`(
161+ failure: sending @escaping ( sending JSValue) async throws -> some ConvertibleToJSValue
162+ ) -> JSPromise {
158163 let closure = JSOneshotClosure . async {
159164 try await failure ( $0 [ 0 ] ) . jsValue
160165 }
0 commit comments