Create a new heph::sync module, which contains all the types related to sync actors, such as SyncActor and SyncContext. Within that module I've added SyncActorRunner (previously called SyncWorker and private) and SyncActorRunnerBuilder (yes, it's too long), which can be use to run synchronous actors, catching errors, etc.
This also adds panic handling within the SyncActorRunner, which required the SyncSupervisor::decide_on_panic method. Which is similar to Supervisor::decide_on_panic for async actors.
Finally I've added SyncActor::name to determine the name of the sync actor. With ActorFn this actually produces are reasonable result, with sync_actor as fn(..) -> _ not so much.
Create a new
heph::sync
module, which contains all the types related to sync actors, such asSyncActor
andSyncContext
. Within that module I've addedSyncActorRunner
(previously calledSyncWorker
and private) andSyncActorRunnerBuilder
(yes, it's too long), which can be use to run synchronous actors, catching errors, etc.This also adds panic handling within the
SyncActorRunner
, which required theSyncSupervisor::decide_on_panic
method. Which is similar toSupervisor::decide_on_panic
for async actors.Finally I've added
SyncActor::name
to determine the name of the sync actor. WithActorFn
this actually produces are reasonable result, withsync_actor as fn(..) -> _
not so much.Closes #572 Closes #576