You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubtraitSource:Send + 'static {typeItem:ArconType;/// Poll Source for an Itemfnpoll_next(&mutself) -> SourceResult<Poll<Self::Item>>;/// Set offset for the source////// May be used by replayable sources to set a certain offset..fnset_offset(&mutself,offset:usize);}
My guess is that most sources that we and others implement will be async/await in Rust.
By having it async and using cooperative scheduling on a single core between a Source and operator(s), we will utilise the CPU much better compared to a blocking approach.
As of now, source polling is not
async
.My guess is that most sources that we and others implement will be
async/await
in Rust.By having it async and using cooperative scheduling on a single core between a Source and operator(s), we will utilise the CPU much better compared to a blocking approach.
Related to #277
The text was updated successfully, but these errors were encountered: