Commit baf7d1a4 authored by Cole Brown's avatar Cole Brown

Return error in Emit

parent 9698a72f
......@@ -19,7 +19,7 @@ type Emitter interface {
// calls to Emit will block.
//
// Calling this function with wrong event type will cause a panic.
Emit(evt interface{})
Emit(evt interface{}) error
}
// Subscription represents a subscription to one or multiple event types.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment