Unverified Commit d204016f authored by bigs's avatar bigs Committed by GitHub

Merge pull request #45 from libp2p/feat/event-bus-signature

Return error in Emit
parents 9698a72f baf7d1a4
...@@ -19,7 +19,7 @@ type Emitter interface { ...@@ -19,7 +19,7 @@ type Emitter interface {
// calls to Emit will block. // calls to Emit will block.
// //
// Calling this function with wrong event type will cause a panic. // 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. // 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