go-trigger
go-trigger copied to clipboard
Multiple functions per event
I forked your project, and added multiple functions per event. Also I introduced interfaces for Event and Function, which improves speed and adds functionality.
The only breaking change is that calling Fire(...) now returns [][]reflect.Value() instead of []reflect.Value()
Also the return channel is closed after functions complete.
I suggest you look at it at https://github.com/lkarlslund/go-trigger and give feedback.
This looks okay. would you mind update docs, adding some tests and sending a PR and lets have a review.
This has been a while, any update on this?
Should I just use the fork?
@lkarlslund do like to send over a PR? i can also contribute some on it.
Sorry, I've not maintained my external version of the package for a while. The one I'm using internally is not release ready.