libcoro  1.0
Coroutine support library for C++20

◆ operator!()

template<typename T >
canceled_awaiter coro::future< T >::operator! ( )
inline

awaitable for canceled operation

Result of this operator is awaitable. It returns whether future has been canceled

Return values
truecanceled
falsenot canceled

You can invert meaning by applying ! on return value

if (co_await !!fut) {... fut wasn't canceled...}

Definition at line 807 of file future.h.