mirror of https://github.com/fralalonde/dipstick
Make the OnFlushCancel Send and Sync
It is useless otherwise in most multithreaded applications.
This commit is contained in:
parent
fc4d7e8058
commit
159c422afa
|
@ -140,7 +140,7 @@ pub struct ObserveWhen<'a, T, F> {
|
|||
static ID_GENERATOR: AtomicUsize = AtomicUsize::new(0);
|
||||
|
||||
/// A handle to cancel a flush observer.
|
||||
pub struct OnFlushCancel(Arc<dyn Fn()>);
|
||||
pub struct OnFlushCancel(Arc<dyn Fn() + Send + Sync>);
|
||||
|
||||
impl Cancel for OnFlushCancel {
|
||||
fn cancel(&self) {
|
||||
|
|
Loading…
Reference in New Issue