Alessandro Diaferia02/12/2019, 3:49 PM
function and this function depends on a series of initialization steps that the instance has to perform before being able to actually search and return results. How would you handle this using coroutines? Would you have an
function that returns a
or would you simply mark
and “hide” the suspension as an implementation detail waiting internally for the initialization job to complete? Or would you tackle this issue in a completely different way?
withoutclass02/12/2019, 3:54 PM
and then if
is called, make sure your search function
on those steps
dewildte02/12/2019, 4:02 PM
and pass the actor the return
to send the results too.
Dico02/12/2019, 8:38 PM
instance and join it