Uses of Class
fj.control.parallel.Promise
Packages that use Promise
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
Optic data types adapted from the Scala Monocle library
and inspired by the
Haskell Lens library.
-
Uses of Promise in fj
Modifier and TypeMethodDescriptionF.mapPromise()
Promotes this function to map over a Promise.F.mapPromise()
Promotes this function to map over a Promise.Promotes this function to a concurrent function that returns a Promise of a value.F2.promiseM()
Promotes this function to a function on Promises.F2.promiseM()
Promotes this function to a function on Promises.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 PromiseMethods in fj.control.parallel that return PromiseModifier and TypeMethodDescription<B> Promise
<B> Performs function application within a promise (applicative functor pattern).<B,
C> Promise <C> Binds the given function to this promise and the given promise, with a final join.<B> Promise
<B> Binds the given function over this promise, with a final join.<B,
C> Promise <C> Binds the given function to this promise and the given promise, with a final join.<B> Promise
<B> Binds the given function across a promise of this promise (Comonad pattern).Promise.cojoin()
Duplicates this promise to a promise of itself (Comonad pattern).<B> Promise
<B> Provides a promise to apply the given function to this promise's future value (covariant functor pattern).static <A> Promise
<A> Turns a promise of a promise into just a promise.static <A> Promise
<A> Turns a product of a promise into just a promise.Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.Takes a Promise-valued function and applies it to each element in the given Stream, yielding a promise of a Stream of results.Maps a concurrent function over a Product-1 inside a Promise.private static <A> Promise
<A> <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.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.Maps the given function across all positions of the given zipper in parallel.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.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.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.ParModule.parFlatMap
(Iterable<A> as, F<A, 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
(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
(Iterable<A> as, F<A, B> map, Monoid<B> reduce, F<Iterable<A>, P2<Iterable<A>, Iterable<A>>> chunking) Maps with the given function across chunks of the given Iterable in parallel, while folding with the given monoid.Maps across an Array in parallel.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.Maps across a Stream in parallel.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.Maps a function across a Zipper in parallel.Maps across an Iterable in parallel.ParModule.parZipWith
(Array<A> as, Array<B> bs, F<A, F<B, C>> f) Zips two arrays together with a given function, in parallel.ParModule.parZipWith
(List<A> as, List<B> bs, F<A, F<B, C>> f) Zips two lists together with a given function, in parallel.ParModule.parZipWith
(Stream<A> as, Stream<B> bs, F<A, F<B, C>> f) Zips two streams together with a given function, in parallel.ParModule.parZipWith
(Iterable<A> as, Iterable<B> bs, F<A, F<B, C>> f) Zips two iterables together with a given function, in parallel.<A> Promise
<A> Evaluates the given product concurrently and returns a Promise of the result.static <A> Promise
<A> Promises to provide the value of the given 1-product, in the future.Provides a promise to call the given Callable in the future.List iteration inside a Promise.Stream iteration inside a Promise.Traverses a product-1 inside a promise.Turns a List of promises into a single promise of a List.Turns a Stream of promises into a single promise of a Stream.Transforms a product of a promise to a promise of a product.Methods in fj.control.parallel that return types with arguments of type PromiseModifier and TypeMethodDescriptionPromise.cojoin()
Duplicates this promise to a promise of itself (Comonad pattern).Promotes any function to a transformation between promises (covariant functor pattern).Promotes any function to a transformation between promises (covariant functor pattern).Performs a right-fold reduction across a list in constant stack space.Performs a right-fold reduction across a Stream in constant stack space.Promotes a function of arity-2 to a function on promises.Promotes a function of arity-2 to a function on promises.Promotes a function of arity-2 to a function on promises.ParModule.mapList()
First-class function that maps a concurrent function over a List inside a promise.ParModule.mapList()
First-class function that maps a concurrent function over a List inside a promise.ParModule.mapStream()
First-class function that maps a concurrent function over a Stream inside a promise.ParModule.mapStream()
First-class function that maps a concurrent function over a Stream inside a promise.ParModule.parMapArray()
A first-class function that maps another function across an array in parallel.ParModule.parMapIterable()
A first-class function that maps another function across an iterable in parallel.ParModule.parMapList()
A first-class function that maps another function across a list in parallel.ParModule.parMapStream()
A first-class function that maps another function across a stream in parallel.ParModule.parMapTree()
A first-class function that maps across a Tree in parallel.Actor.promise()
Transforms this actor to an actor on promises.ParModule.promise()
Returns a function that evaluates a given product concurrently and returns a Promise of the result.Promotes the given function to a concurrent function that returns a Promise.Promotes the given function to a concurrent function that returns a Promise.Provides a first-class unit function for promises.Transforms any function so that it returns a promise of a value instead of an actual value.ParModule.promisePure()
Returns a function that promotes a given function to a concurrent function that returns a Promise.First-class version of the sequence function through a List.First-class version of the sequence function through a List.ParModule.sequenceList()
A first-class function that traverses a list inside a promise.ParModule.sequenceList()
A first-class function that traverses a list inside a promise.First-class version of the sequence function through a Stream.First-class version of the sequence function through a Stream.ParModule.sequenceStream()
A first-class function that traverses a stream inside a promise.ParModule.sequenceStream()
A first-class function that traverses a stream inside a promise.Methods in fj.control.parallel with parameters of type PromiseModifier and TypeMethodDescription<B> Promise
<B> Performs function application within a promise (applicative functor pattern).<B,
C> Promise <C> Binds the given function to this promise and the given promise, with a final join.static <A> Promise
<A> Turns a promise of a promise into just a promise.Method parameters in fj.control.parallel with type arguments of type PromiseModifier and TypeMethodDescription<B> Promise
<B> Binds the given function over this promise, with a final join.<B,
C> Promise <C> Binds the given function to this promise and the given promise, with a final join.<B> Promise
<B> Binds the given function across a promise of this promise (Comonad pattern).static <A> Promise
<A> Turns a promise of a promise into just a promise.static <A> Promise
<A> Turns a product of a promise into just a promise.Takes a Promise-valued function and applies it to each element in the given List, yielding a promise of a List of results.Takes a Promise-valued function and applies it to each element in the given Stream, yielding a promise of a Stream of results.Maps a concurrent function over a Product-1 inside a Promise.List iteration inside a Promise.Stream iteration inside a Promise.Traverses a product-1 inside a promise.Turns a List of promises into a single promise of a List.Turns a Stream of promises into a single promise of a Stream.Transforms a product of a promise to a promise of a product.<B> Stream
<B> 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 -
Uses of Promise in fj.data
Modifier and TypeMethodDescription -
Uses of Promise in fj.data.optic
Methods in fj.data.optic that return types with arguments of type PromiseModifier and TypeMethodDescriptionLens.modifyPromiseF
(F<A, Promise<A>> f) Optional.modifyPromiseF
(F<A, Promise<A>> f) PIso.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPIso
with an Applicative functionPLens.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPLens
with an Applicative functionPOptional.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPOptional
with an Applicative functionPPrism.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPPrism
with an Applicative functionPTraversal.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPTraversal
with an Applicative functionTraversal.modifyPromiseF
(F<A, Promise<A>> f) Method parameters in fj.data.optic with type arguments of type PromiseModifier and TypeMethodDescriptionLens.modifyPromiseF
(F<A, Promise<A>> f) Optional.modifyPromiseF
(F<A, Promise<A>> f) PIso.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPIso
with an Applicative functionPLens.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPLens
with an Applicative functionPOptional.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPOptional
with an Applicative functionPPrism.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPPrism
with an Applicative functionPTraversal.modifyPromiseF
(F<A, Promise<B>> f) modify polymorphically the target of aPTraversal
with an Applicative functionTraversal.modifyPromiseF
(F<A, Promise<A>> f)