Checkpoint
This commit is contained in:
parent
191285a8f1
commit
9aaf7d0c46
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ struct SubscriberSetState<EmitterKey, Callback> {
|
||||||
|
|
||||||
impl<EmitterKey, Callback> SubscriberSet<EmitterKey, Callback>
|
impl<EmitterKey, Callback> SubscriberSet<EmitterKey, Callback>
|
||||||
where
|
where
|
||||||
EmitterKey: 'static + Ord + Clone + Debug,
|
EmitterKey: 'static + Send + Sync + Ord + Clone + Debug,
|
||||||
Callback: 'static + Send + Sync,
|
Callback: 'static + Send + Sync,
|
||||||
{
|
{
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
@ -96,7 +96,7 @@ where
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub struct Subscription {
|
pub struct Subscription {
|
||||||
unsubscribe: Option<Box<dyn FnOnce()>>,
|
unsubscribe: Option<Box<dyn FnOnce() + Send + Sync + 'static>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Subscription {
|
impl Subscription {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue