# Trait futures::task::EventSet [−] [src]

    pub trait EventSet: Send + Sync + 'static {
        fn insert(&self, id: usize);
    }

Deprecated since 0.1.18

: recommended to use `FuturesUnordered` instead

A concurrent set which allows for the insertion of `usize` values.

`EventSet`s are used to communicate precise information about the event(s) that triggered a task notification. See `task::with_unpark_event` for details.

## Required Methods

### `fn insert(&self, id: usize)`

Deprecated since 0.1.18

: recommended to use `FuturesUnordered` instead

Insert the given ID into the set

## Implementors

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)