libcoro  1.0
Coroutine support library for C++20

◆ release()

coro::promise<void>::notify coro::semaphore::release ( )
inline

Release the semaphore.

Resumes first awaiting coroutine. If there is no coroutine, increases counter

Returns
notify object associated with the awaiting future. You can use it to choose perfect place to perform resumption. If ignored, released coroutine is resumed immediatelly

Definition at line 59 of file semaphore.h.