Diagnosis

In order to develop actor programs, it is useful to have access to the actor tasks and eventually to their stack traces. You can register! an actor channel to a Vector{Link} in order to get access to the tasks.

YAActL.register!Function
register!(lks::Vector{Link}, lk::Link)

Register a link lk to a vector of links lks.

source
Base.istaskfailedMethod
istaskfailed(lks::Vector{Link})

Returns true if any task associated with a vector lks of links has failed.

source
YAActL.infoFunction
info(lk::Link)

Return the state (eventually the stacktrace) of a task associated with lk.

source

For diagnostic purposes it is possible to get access to the actor's ACT variable:

YAActL.diag!Function
diag!(lk::Link)
diag!(name::Symbol)

Return the internal _ACT variable of the lk actor. This is only for diagnosis and testing.

source