Skip to content

Commit

Permalink
Document unsafeTryInstallSingletonPosixEventLoopGroupAsConcurrencyGlo…
Browse files Browse the repository at this point in the history
…balExecutor (#2721)

Document what unsafeTryInstallSingletonPosixEventLoopGroupAsConcurrencyGlobalExecutor's return value means
  • Loading branch information
weissi committed May 14, 2024
1 parent cd51717 commit 5c378ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ extension NIOSingletons {
/// operation doesn't guarantee anything because another piece of code could have done the same without using atomic operations. But we
/// do our best.
///
/// - returns: If ``MultiThreadedEventLoopGroup/singleton`` was successfully installed as Swift Concurrency's global executor or not.
///
/// - warning: You may only call this method from the main thread.
/// - warning: You may only call this method once.
@discardableResult
Expand Down

0 comments on commit 5c378ed

Please sign in to comment.