mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2026-08-18 15:03:28 +08:00
Merge pull request #45 from libp2p/feat/event-bus-signature
Return error in Emit
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user