Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions stdlib/public/Synchronization/Mutex/Mutex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,13 @@ extension Mutex where Value: ~Copyable {
/// as it will only be executed if the calling thread acquires
/// the lock.
///
/// - Returns: The return value, if any, of the `body` closure parameter
/// or nil if the lock couldn't be acquired.
/// - Returns: The return value, if any, of the `body` closure parameter or
/// `nil` if the lock couldn’t be acquired.
///
/// - Note: This function cannot spuriously fail to acquire the lock. The
/// behavior of similar functions in other languages (such as C's
/// `mtx_trylock()`) is platform-dependent and may differ from Swift's
/// behavior.
@available(SwiftStdlib 6.0, *)
@_alwaysEmitIntoClient
@_transparent
Expand Down