krane icon indicating copy to clipboard operation
krane copied to clipboard

Mutually exclusive states / consistent reporting

Open dturn opened this issue 7 years ago • 0 comments

_succeeded?, _failed?, _timed_out? and (effectively) _ignored? should all be mutually exclusive, but there's nothing forcing them to be, and if they aren't in practice, what we'll show depends on what the caller decided to check first.

We should improve this situation since its likely to lead to reporting bugs / our reporting code is already getting complicated.

1 idea is to carefully define states and have the sync method move us through them..

cc: @KnVerey

dturn avatar Apr 19 '18 18:04 dturn