MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_active()

bool MayaFlux::Vruta::Event::is_active ( ) const
virtual

Checks if the coroutine is still active.

Returns
True if the coroutine is active, false if it's completed or invalid

An active coroutine has not yet completed its execution and can be resumed. Inactive coroutines have either completed or were never properly initialized.

Definition at line 72 of file Event.cpp.

73{
74 if (!m_handle) {
75 return false;
76 }
77 return m_handle.address() != nullptr && !m_handle.done();
78}
std::coroutine_handle< promise_type > m_handle
Definition Event.hpp:225

References m_handle.