First pass at allowing multiple event types to be emitted by an entity
This commit is contained in:
parent
c81440424b
commit
26fc36ee0e
6 changed files with 123 additions and 74 deletions
|
@ -75,6 +75,8 @@ where
|
|||
.flatten()
|
||||
}
|
||||
|
||||
/// Call the given callback for each subscriber to the given emitter.
|
||||
/// If the callback returns false, the subscriber is removed.
|
||||
pub fn retain<F>(&self, emitter: &EmitterKey, mut f: F)
|
||||
where
|
||||
F: FnMut(&mut Callback) -> bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue