[][src]Function tbot::predicates::without_state

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

Allows running stateless predicates in the stateful event loop.