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!
— Functionregister!(lks::Vector{Link}, lk::Link)
Register a link lk
to a vector of links lks
.
Base.istaskfailed
— Methodistaskfailed(lk::Link)
Returns true if a task associated with lk
has failed.
Base.istaskfailed
— Methodistaskfailed(lks::Vector{Link})
Returns true if any task associated with a vector lks
of links has failed.
YAActL.info
— Functioninfo(lk::Link)
Return the state (eventually the stacktrace) of a task associated with lk
.
For diagnostic purposes it is possible to get access to the actor's ACT
variable:
YAActL.diag!
— Functiondiag!(lk::Link)
diag!(name::Symbol)
Return the internal _ACT
variable of the lk
actor. This is only for diagnosis and testing.