Function tbot::predicates::without_state

source ·
pub fn without_state<'a, C, P, S, F>(
    predicate: P
) -> impl Fn(Arc<C>, Arc<S>) -> BoxFuture<'a, bool> + Send + Sync + 'awhere
    P: PredicateBooleanOperations<C, F>,
    F: Future<Output = bool> + Send,
    C: Send + Sync + 'static,
    S: Send + Sync + 'static,
Expand description

Allows running stateless predicates in the stateful event loop.