Skip to content

Commit 681bb0b

Browse files
author
Krzysztof Rodak
committed
[NFC] BridgeJS: Update renderAsyncFunction doc comment
1 parent 14c1336 commit 681bb0b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎Plugins/BridgeJS/Sources/BridgeJSLink/BridgeJSLink.swift‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,9 +2897,8 @@ extension BridgeJSLink {
28972897

28982898
/// Renders an async import function with resolve/reject closure refs.
28992899
///
2900-
/// The generated function takes `resolveRef` and `rejectRef` as the first parameters,
2901-
/// looks up the resolve/reject closures from memory, and executes the body which
2902-
/// chains `.then(resolve, reject)` on the import's returned Promise.
2900+
/// The generated function takes `resolveRef` and `rejectRef` as the first parameters
2901+
/// and settles them with the result of the import call.
29032902
private func renderAsyncFunction(name: String?) -> [String] {
29042903
let printer = CodeFragmentPrinter()
29052904
let allParams = ["resolveRef", "rejectRef"] + parameterNames

0 commit comments

Comments
 (0)