Add a pass option
Both functions should support a pass
, which is a function to be called when reaching the success state. I'd expect most consumers not to make use of it, but it's cheap to add and is symmetrical with the fail
option.
Both functions should support a pass
, which is a function to be called when reaching the success state. I'd expect most consumers not to make use of it, but it's cheap to add and is symmetrical with the fail
option.