diag(lk::Link, check::Symbol=:state)
diag(name::Symbol, ....)

Diagnose an actor, get a state or stacktrace.


  • lk::Link: actor link,
  • check::Symbol: requested information,
- `:state`: returns `:ok` if the actor is running, 
- `:task`: returns the current actor task,
- `:tid`: current actor task encoded as a proquint string,
- `:pid`: process identifier number,
- `:act`: actor `_ACT` variable,
- `:info`: actor [`Info`](@ref),
- `:err`: error log (only monitors or supervisors).
  • timeout::Real=5.0: timeout in seconds.
This is for diagnosis only!

Modifying an actor's state can cause a race condition.