Merge pull request #77 from vorner/on-flush-send-sync

Make the OnFlushCancel Send and Sync
This commit is contained in:
Francis Lalonde 2019-08-30 06:28:49 -04:00 committed by GitHub
commit ac9903a413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {