if (auto some_thread = get_thread("some_thread_name"_hs))
{
co_await some_thread.pause();
}
where some_thread would be an interface type tied to the underlying EntityThread and/or Script. This type would be convertible to bool, with true indicating that the thread is currently running and linked.
This would be for the current entity, but we would ideally be able to do this for other entities as well.
This would look something like:
where
some_thread
would be an interface type tied to the underlyingEntityThread
and/orScript
. This type would be convertible tobool
, withtrue
indicating that the thread is currently running and linked.This would be for the current entity, but we would ideally be able to do this for other entities as well.