void HandleEvent(std::shared_ptr<dt::Event> e) { if(e->GetType() == "cancelevent") { dt::Logger::Get().Info("CancelListener: Canceling event"); e->Cancel(); } }
void SpectraCoroutineExecution::Cancel(void) { coroutine->Cancel(); }