Closed whitfin closed 8 years ago
Also decided that results should always be provided and there should no longer be an option. If there's a pre hook, it's just provided with nil
. Post hooks will always receive the action result. Removes the special casing and option.
GenEvent really doesn't do much for us here, the Hooks operate more as GenServers. There's a fair bit of bloat to Hook setup because of this, so we should just fallback to using GenServer. In future, perhaps GenStage but servers will suffice for now.
We should be able to keep the same interface, but this is going in v2 just in case.