We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
JSObject.transfer()
1 parent f0bd60c commit 8d4bba6Copy full SHA for 8d4bba6
Sources/JavaScriptEventLoop/JSObject+Transferring.swift
@@ -97,7 +97,9 @@ extension JSObject {
97
98
/// Transfers the ownership of a `JSObject` to be sent to another thread.
99
///
100
- /// Note that the original ``JSObject`` should not be accessed after calling this method.
+ /// - Precondition: The thread calling this method should have the ownership of the `JSObject`.
101
+ /// - Postcondition: The original `JSObject` is no longer owned by the thread, further access to it
102
+ /// on the thread that called this method is invalid and will result in undefined behavior.
103
104
/// - Parameter object: The ``JSObject`` to be transferred.
105
/// - Returns: A ``Transferring`` instance that can be shared across threads.
0 commit comments