libcoro  1.0
Coroutine support library for C++20

◆ acquire()

coro::future<void> coro::semaphore::acquire ( )
inline

acquire the semaphore

Decrease the counter.

Return values
resolvedfuture is resolved, if counter was above zero
pendingfuture is pending, if counter was (and is) zero. The future can be set to resolved by release()

Definition at line 32 of file semaphore.h.

+ Here is the caller graph for this function: