mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
Return error in Emit
This commit is contained in:
parent
9698a72f45
commit
baf7d1a4e3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user