package async_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Similar to Deferred.Queue but eager when passing ~how:`Sequential. The functions in Queue raise if the queue is mutated during execution.

val foldi : 'a Core.Queue.t -> init:'b -> f:(int -> 'b -> 'a -> 'b Async_kernel.Deferred.t) -> 'b Async_kernel.Deferred.t
val fold : 'a Core.Queue.t -> init:'b -> f:('b -> 'a -> 'b Async_kernel.Deferred.t) -> 'b Async_kernel.Deferred.t
val find : 'a Core.Queue.t -> f:('a -> bool Async_kernel.Deferred.t) -> 'a option Async_kernel.Deferred.t
val findi : 'a Core.Queue.t -> f:(int -> 'a -> bool Async_kernel.Deferred.t) -> (int * 'a) option Async_kernel.Deferred.t
val find_map : 'a Core.Queue.t -> f:('a -> 'b option Async_kernel.Deferred.t) -> 'b option Async_kernel.Deferred.t
val find_mapi : 'a Core.Queue.t -> f:(int -> 'a -> 'b option Async_kernel.Deferred.t) -> 'b option Async_kernel.Deferred.t
val exists : 'a Core.Queue.t -> f:('a -> bool Async_kernel.Deferred.t) -> bool Async_kernel.Deferred.t
val existsi : 'a Core.Queue.t -> f:(int -> 'a -> bool Async_kernel.Deferred.t) -> bool Async_kernel.Deferred.t
val for_all : 'a Core.Queue.t -> f:('a -> bool Async_kernel.Deferred.t) -> bool Async_kernel.Deferred.t
val for_alli : 'a Core.Queue.t -> f:(int -> 'a -> bool Async_kernel.Deferred.t) -> bool Async_kernel.Deferred.t

Deferred iterators

val filter_mapi : how:Async_kernel.Monad_sequence.how -> 'a Core.Queue.t -> f:(int -> 'a -> 'b option Async_kernel.Deferred.t) -> 'b Core.Queue.t Async_kernel.Deferred.t
OCaml

Innovation. Community. Security.