From 543c7e9086c3da63c46d1eaee605d0c8db61f42a Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Fri, 10 May 2024 18:06:01 +0100 Subject: [PATCH] Update PosixSingletons+ConcurrencyTakeOver.swift Document what unsafeTryInstallSingletonPosixEventLoopGroupAsConcurrencyGlobalExecutor's return value means --- Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift b/Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift index a25c5eae71..9b6d97d139 100644 --- a/Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift +++ b/Sources/NIOPosix/PosixSingletons+ConcurrencyTakeOver.swift @@ -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