Uses of Class
fj.control.parallel.Promise
-
Packages that use Promise Package Description fj Types that set the premise for the existence of Functional Java.fj.control.parallel Parallelization strategies.fj.data Common algebraic data types.fj.data.optic Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library. -
-
Uses of Promise in fj
Methods in fj that return types with arguments of type Promise Modifier and Type Method Description default F<Promise<A>,Promise<B>>
F. mapPromise()
Promotes this function to map over a Promise.default F<Promise<A>,Promise<B>>
F. mapPromise()
Promotes this function to map over a Promise.default F<A,Promise<B>>
F. promiseK(Strategy<Unit> s)
Promotes this function to a concurrent function that returns a Promise of a value.default F2<Promise<A>,Promise<B>,Promise<C>>
F2. promiseM()
Promotes this function to a function on Promises.default F2<Promise<A>,Promise<B>,Promise<C>>
F2. promiseM()
Promotes this function to a function on Promises.default F2<Promise<A>,Promise<B>,Promise<C>>
F2. promiseM()
Promotes this function to a function on Promises. -
Uses of Promise in fj.control.parallel
Fields in fj.control.parallel with type parameters of type Promise Modifier and Type Field Description private Actor<P2<Either<P1<A>,Actor<A>>,Promise<A>>>
Promise. actor
Methods in fj.control.parallel that return Promise Modifier and Type Method Description <B> Promise<B>
Promise. apply(Promise<F<A,B>> pf)
Performs function application within a promise (applicative functor pattern).<B,C>
Promise<C>Promise. bind(Promise<B> pb, F<A,F<B,C>> f)
Binds the given function to this promise and the given promise, with a final join.<B> Promise<B>
Promise. bind(F<A,Promise<B>> f)
Binds the given function over this promise, with a final join.<B,C>
Promise<C>Promise. bind(P1<Promise<B>> p, F<A,F<B,C>> f)
Binds the given function to this promise and the given promise, with a final join.<B> Promise<B>
Promise. cobind(F<Promise<A>,B> f)
Binds the given function across a promise of this promise (Comonad pattern).Promise<Promise<A>>
Promise. cojoin()
Duplicates this promise to a promise of itself (Comonad pattern).<B> Promise<B>
Promise. fmap(F<A,B> f)
Provides a promise to apply the given function to this promise's future value (covariant functor pattern).static <A> Promise<A>
Promise. join(Promise<Promise<A>> p)
Turns a promise of a promise into just a promise.static <A> Promise<A>
Promise. join(Strategy<Unit> s, P1<Promise<A>> p)
Turns a product of a promise into just a promise.<A,B>
Promise<List<B>>ParModule. mapM(List<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.<A,B>
Promise<Stream<B>>ParModule. mapM(Stream<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given Stream, yielding a promise of a Stream of results.<A,B>
Promise<P1<B>>ParModule. mapM(P1<A> a, F<A,Promise<B>> f)
Maps a concurrent function over a Product-1 inside a Promise.private static <A> Promise<A>
Promise. mkPromise(Strategy<Unit> s)
<A,B>
Promise<NonEmptyList<B>>ParModule. parExtend(NonEmptyList<A> as, F<NonEmptyList<A>,B> f)
Maps the given function across all sublists of the given NonEmptyList in parallel.<A,B>
Promise<Tree<B>>ParModule. parExtend(Tree<A> ta, F<Tree<A>,B> f)
Maps the given function across all subtrees of the given Tree in parallel.<A,B>
Promise<TreeZipper<B>>ParModule. parExtend(TreeZipper<A> za, F<TreeZipper<A>,B> f)
Maps the given function across all positions of the given TreeZipper in parallel.<A,B>
Promise<Zipper<B>>ParModule. parExtend(Zipper<A> za, F<Zipper<A>,B> f)
Maps the given function across all positions of the given zipper in parallel.<A,B>
Promise<Array<B>>ParModule. parFlatMap(Array<A> as, F<A,Array<B>> f)
Binds an Array-valued function across an Array in parallel, concatenating the results into a new Array.<A,B>
Promise<List<B>>ParModule. parFlatMap(List<A> as, F<A,List<B>> f)
Binds a list-valued function across a list in parallel, concatenating the results into a new list.<A,B>
Promise<Stream<B>>ParModule. parFlatMap(Stream<A> as, F<A,Stream<B>> f)
Binds a Stream-valued function across a Stream in parallel, concatenating the results into a new Stream.<A,B>
Promise<java.lang.Iterable<B>>ParModule. parFlatMap(java.lang.Iterable<A> as, F<A,java.lang.Iterable<B>> f)
Binds an Iterable-valued function across an Iterable in parallel, concatenating the results into a new Iterable.<A,B>
Promise<B>ParModule. parFoldMap(Stream<A> as, F<A,B> map, Monoid<B> reduce)
Maps with the given function across the given stream in parallel, while folding with the given monoid.<A,B>
Promise<B>ParModule. parFoldMap(Stream<A> as, F<A,B> map, Monoid<B> reduce, F<Stream<A>,P2<Stream<A>,Stream<A>>> chunking)
Maps with the given function across chunks of the given stream in parallel, while folding with the given monoid.<A,B>
Promise<B>ParModule. parFoldMap(java.lang.Iterable<A> as, F<A,B> map, Monoid<B> reduce)
Maps with the given function across the given iterable in parallel, while folding with the given monoid.<A,B>
Promise<B>ParModule. parFoldMap(java.lang.Iterable<A> as, F<A,B> map, Monoid<B> reduce, F<java.lang.Iterable<A>,P2<java.lang.Iterable<A>,java.lang.Iterable<A>>> chunking)
Maps with the given function across chunks of the given Iterable in parallel, while folding with the given monoid.<A,B>
Promise<Array<B>>ParModule. parMap(Array<A> as, F<A,B> f)
Maps across an Array in parallel.<A,B>
Promise<List<B>>ParModule. parMap(List<A> as, F<A,B> f)
Maps across a list in parallel.<A,B>
Promise<NonEmptyList<B>>ParModule. parMap(NonEmptyList<A> as, F<A,B> f)
Maps across a nonempty list in parallel.<A,B>
Promise<Stream<B>>ParModule. parMap(Stream<A> as, F<A,B> f)
Maps across a Stream in parallel.<A,B>
Promise<Tree<B>>ParModule. parMap(Tree<A> ta, F<A,B> f)
Maps a function across a Tree in parallel.<A,B>
Promise<TreeZipper<B>>ParModule. parMap(TreeZipper<A> za, F<A,B> f)
Maps a function across a TreeZipper in parallel.<A,B>
Promise<Zipper<B>>ParModule. parMap(Zipper<A> za, F<A,B> f)
Maps a function across a Zipper in parallel.<A,B>
Promise<java.lang.Iterable<B>>ParModule. parMap(java.lang.Iterable<A> as, F<A,B> f)
Maps across an Iterable in parallel.<A,B,C>
Promise<Array<C>>ParModule. parZipWith(Array<A> as, Array<B> bs, F<A,F<B,C>> f)
Zips two arrays together with a given function, in parallel.<A,B,C>
Promise<List<C>>ParModule. parZipWith(List<A> as, List<B> bs, F<A,F<B,C>> f)
Zips two lists together with a given function, in parallel.<A,B,C>
Promise<Stream<C>>ParModule. parZipWith(Stream<A> as, Stream<B> bs, F<A,F<B,C>> f)
Zips two streams together with a given function, in parallel.<A,B,C>
Promise<java.lang.Iterable<C>>ParModule. parZipWith(java.lang.Iterable<A> as, java.lang.Iterable<B> bs, F<A,F<B,C>> f)
Zips two iterables together with a given function, in parallel.<A> Promise<A>
ParModule. promise(P1<A> p)
Evaluates the given product concurrently and returns a Promise of the result.static <A> Promise<A>
Promise. promise(Strategy<Unit> s, P1<A> a)
Promises to provide the value of the given 1-product, in the future.static <A> Promise<java.util.concurrent.Callable<A>>
Promise. promise(Strategy<Unit> s, java.util.concurrent.Callable<A> a)
Provides a promise to call the given Callable in the future.<A> Promise<List<A>>
ParModule. sequence(List<Promise<A>> ps)
List iteration inside a Promise.<A> Promise<Stream<A>>
ParModule. sequence(Stream<Promise<A>> ps)
Stream iteration inside a Promise.<A> Promise<P1<A>>
ParModule. sequence(P1<Promise<A>> p)
Traverses a product-1 inside a promise.static <A> Promise<List<A>>
Promise. sequence(Strategy<Unit> s, List<Promise<A>> as)
Turns a List of promises into a single promise of a List.static <A> Promise<Stream<A>>
Promise. sequence(Strategy<Unit> s, Stream<Promise<A>> as)
Turns a Stream of promises into a single promise of a Stream.static <A> Promise<P1<A>>
Promise. sequence(Strategy<Unit> s, P1<Promise<A>> p)
Transforms a product of a promise to a promise of a product.Methods in fj.control.parallel that return types with arguments of type Promise Modifier and Type Method Description Promise<Promise<A>>
Promise. cojoin()
Duplicates this promise to a promise of itself (Comonad pattern).static <A,B>
F<Promise<A>,Promise<B>>Promise. fmap_(F<A,B> f)
Promotes any function to a transformation between promises (covariant functor pattern).static <A,B>
F<Promise<A>,Promise<B>>Promise. fmap_(F<A,B> f)
Promotes any function to a transformation between promises (covariant functor pattern).static <A,B>
F<List<A>,Promise<B>>Promise. foldRight(Strategy<Unit> s, F<A,F<B,B>> f, B b)
Performs a right-fold reduction across a list in constant stack space.static <A,B>
F<Stream<A>,Promise<B>>Promise. foldRightS(Strategy<Unit> s, F<A,F<P1<B>,B>> f, B b)
Performs a right-fold reduction across a Stream in constant stack space.static <A,B,C>
F<Promise<A>,F<Promise<B>,Promise<C>>>Promise. liftM2(F<A,F<B,C>> f)
Promotes a function of arity-2 to a function on promises.static <A,B,C>
F<Promise<A>,F<Promise<B>,Promise<C>>>Promise. liftM2(F<A,F<B,C>> f)
Promotes a function of arity-2 to a function on promises.static <A,B,C>
F<Promise<A>,F<Promise<B>,Promise<C>>>Promise. liftM2(F<A,F<B,C>> f)
Promotes a function of arity-2 to a function on promises.<A,B>
F<F<A,Promise<B>>,F<List<A>,Promise<List<B>>>>ParModule. mapList()
First-class function that maps a concurrent function over a List inside a promise.<A,B>
F<F<A,Promise<B>>,F<List<A>,Promise<List<B>>>>ParModule. mapList()
First-class function that maps a concurrent function over a List inside a promise.<A,B>
F<F<A,Promise<B>>,F<Stream<A>,Promise<Stream<B>>>>ParModule. mapStream()
First-class function that maps a concurrent function over a Stream inside a promise.<A,B>
F<F<A,Promise<B>>,F<Stream<A>,Promise<Stream<B>>>>ParModule. mapStream()
First-class function that maps a concurrent function over a Stream inside a promise.<A,B>
F<F<A,B>,F<Array<A>,Promise<Array<B>>>>ParModule. parMapArray()
A first-class function that maps another function across an array in parallel.<A,B>
F<F<A,B>,F<java.lang.Iterable<A>,Promise<java.lang.Iterable<B>>>>ParModule. parMapIterable()
A first-class function that maps another function across an iterable in parallel.<A,B>
F<F<A,B>,F<List<A>,Promise<List<B>>>>ParModule. parMapList()
A first-class function that maps another function across a list in parallel.<A,B>
F<F<A,B>,F<Stream<A>,Promise<Stream<B>>>>ParModule. parMapStream()
A first-class function that maps another function across a stream in parallel.<A,B>
F<F<A,B>,F<Tree<A>,Promise<Tree<B>>>>ParModule. parMapTree()
A first-class function that maps across a Tree in parallel.Actor<Promise<A>>
Actor. promise()
Transforms this actor to an actor on promises.<A> F<P1<A>,Promise<A>>
ParModule. promise()
Returns a function that evaluates a given product concurrently and returns a Promise of the result.<A,B>
F<A,Promise<B>>ParModule. promise(F<A,B> f)
Promotes the given function to a concurrent function that returns a Promise.<A,B,C>
F2<A,B,Promise<C>>ParModule. promise(F2<A,B,C> f)
Promotes the given function to a concurrent function that returns a Promise.static <A> F<P1<A>,Promise<A>>
Promise. promise(Strategy<Unit> s)
Provides a first-class unit function for promises.static <A,B>
F<A,Promise<B>>Promise. promise(Strategy<Unit> s, F<A,B> f)
Transforms any function so that it returns a promise of a value instead of an actual value.<A,B>
F<F<A,B>,F<A,Promise<B>>>ParModule. promisePure()
Returns a function that promotes a given function to a concurrent function that returns a Promise.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequence(Strategy<Unit> s)
First-class version of the sequence function through a List.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequence(Strategy<Unit> s)
First-class version of the sequence function through a List.<A> F<List<Promise<A>>,Promise<List<A>>>
ParModule. sequenceList()
A first-class function that traverses a list inside a promise.<A> F<List<Promise<A>>,Promise<List<A>>>
ParModule. sequenceList()
A first-class function that traverses a list inside a promise.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequenceS(Strategy<Unit> s)
First-class version of the sequence function through a Stream.static <A> F<List<Promise<A>>,Promise<List<A>>>
Promise. sequenceS(Strategy<Unit> s)
First-class version of the sequence function through a Stream.<A> F<Stream<Promise<A>>,Promise<Stream<A>>>
ParModule. sequenceStream()
A first-class function that traverses a stream inside a promise.<A> F<Stream<Promise<A>>,Promise<Stream<A>>>
ParModule. sequenceStream()
A first-class function that traverses a stream inside a promise.Methods in fj.control.parallel with parameters of type Promise Modifier and Type Method Description <B> Promise<B>
Promise. apply(Promise<F<A,B>> pf)
Performs function application within a promise (applicative functor pattern).<B,C>
Promise<C>Promise. bind(Promise<B> pb, F<A,F<B,C>> f)
Binds the given function to this promise and the given promise, with a final join.static <A> Promise<A>
Promise. join(Promise<Promise<A>> p)
Turns a promise of a promise into just a promise.Method parameters in fj.control.parallel with type arguments of type Promise Modifier and Type Method Description <B> Promise<B>
Promise. bind(F<A,Promise<B>> f)
Binds the given function over this promise, with a final join.<B,C>
Promise<C>Promise. bind(P1<Promise<B>> p, F<A,F<B,C>> f)
Binds the given function to this promise and the given promise, with a final join.<B> Promise<B>
Promise. cobind(F<Promise<A>,B> f)
Binds the given function across a promise of this promise (Comonad pattern).static <A> Promise<A>
Promise. join(Promise<Promise<A>> p)
Turns a promise of a promise into just a promise.static <A> Promise<A>
Promise. join(Strategy<Unit> s, P1<Promise<A>> p)
Turns a product of a promise into just a promise.<A,B>
Promise<List<B>>ParModule. mapM(List<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.<A,B>
Promise<Stream<B>>ParModule. mapM(Stream<A> as, F<A,Promise<B>> f)
Takes a Promise-valued function and applies it to each element in the given Stream, yielding a promise of a Stream of results.<A,B>
Promise<P1<B>>ParModule. mapM(P1<A> a, F<A,Promise<B>> f)
Maps a concurrent function over a Product-1 inside a Promise.<A> Promise<List<A>>
ParModule. sequence(List<Promise<A>> ps)
List iteration inside a Promise.<A> Promise<Stream<A>>
ParModule. sequence(Stream<Promise<A>> ps)
Stream iteration inside a Promise.<A> Promise<P1<A>>
ParModule. sequence(P1<Promise<A>> p)
Traverses a product-1 inside a promise.static <A> Promise<List<A>>
Promise. sequence(Strategy<Unit> s, List<Promise<A>> as)
Turns a List of promises into a single promise of a List.static <A> Promise<Stream<A>>
Promise. sequence(Strategy<Unit> s, Stream<Promise<A>> as)
Turns a Stream of promises into a single promise of a Stream.static <A> Promise<P1<A>>
Promise. sequence(Strategy<Unit> s, P1<Promise<A>> p)
Transforms a product of a promise to a promise of a product.<B> Stream<B>
Promise. sequenceW(Stream<F<Promise<A>,B>> fs)
Applies a stream of comonadic functions to this promise, returning a stream of values.Constructor parameters in fj.control.parallel with type arguments of type Promise Constructor Description Promise(Strategy<Unit> s, Actor<P2<Either<P1<A>,Actor<A>>,Promise<A>>> qa)
-
Uses of Promise in fj.data
Methods in fj.data that return Promise Modifier and Type Method Description private Promise<Stream<A>>
Stream. qs(Ord<A> o, Strategy<Unit> s)
<B> Promise<List<B>>
List. traversePromise(F<A,Promise<B>> f)
Methods in fj.data that return types with arguments of type Promise Modifier and Type Method Description private static <A> F<Stream<A>,Promise<Stream<A>>>
Stream. flt(Ord<A> o, Strategy<Unit> s, A x, F<java.lang.Boolean,java.lang.Boolean> f)
private static <A> F<Stream<A>,Promise<Stream<A>>>
Stream. qs_(Ord<A> o, Strategy<Unit> s)
Method parameters in fj.data with type arguments of type Promise Modifier and Type Method Description <B> Promise<List<B>>
List. traversePromise(F<A,Promise<B>> f)
-
Uses of Promise in fj.data.optic
Methods in fj.data.optic that return types with arguments of type Promise Modifier and Type Method Description F<S,Promise<S>>
Lens. modifyPromiseF(F<A,Promise<A>> f)
F<S,Promise<S>>
Optional. modifyPromiseF(F<A,Promise<A>> f)
F<S,Promise<T>>
PIso. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,Promise<T>>
PLens. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,Promise<T>>
POptional. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,Promise<T>>
PPrism. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,Promise<T>>
PTraversal. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,Promise<S>>
Traversal. modifyPromiseF(F<A,Promise<A>> f)
Method parameters in fj.data.optic with type arguments of type Promise Modifier and Type Method Description F<S,Promise<S>>
Lens. modifyPromiseF(F<A,Promise<A>> f)
F<S,Promise<S>>
Optional. modifyPromiseF(F<A,Promise<A>> f)
F<S,Promise<T>>
PIso. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,Promise<T>>
PLens. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,Promise<T>>
POptional. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,Promise<T>>
PPrism. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,Promise<T>>
PTraversal. modifyPromiseF(F<A,Promise<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,Promise<S>>
Traversal. modifyPromiseF(F<A,Promise<A>> f)
-