pantomime-rs / pantomime

MIT License
5 stars 1 forks source link

Implement watch_with #46

Closed longshorej closed 5 years ago

longshorej commented 5 years ago

Fixes #33.

watch_with allows you to watch an actor for stop/failure, and supply a function that can translate the StopReason into a custom domain message.

This is useful because you may have additional context about the actor that would otherwise be lost if purely relying on signals.