We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I described it in the blog-post Object-Functional Concurrent Programming with Javaslang.
Signatures:
Node<T> of(T seed, Function<? super T, Iterable<? extends T>> descend); Future<Node<T>> ofAsync(T seed, Function<? super T, Future<? extends Iterable<? extends T>>> descend);
Depends on: #1529
Example impl:
static <T> Future<Node<T>> ofAsync(T seed, Function<? super T, Future<? extends Iterable<? extends T>>> descend) { return Future.of(promise -> descend.apply(seed) .onComplete(result -> result .onSuccess(children -> promise.completeWith( Future.sequence( Iterator.ofAll(children).map(child -> ofAsync(child, descend)) ).map(childNodes -> Tree.of(seed, childNodes)))) .onFailure(promise::failure))); }
The text was updated successfully, but these errors were encountered:
Maybe this should be closed. The module vavr-collectionx should not depend on vavr-concurrent.
Sorry, something went wrong.
The sync case is fixed with #2121. We will not do the async case.
No branches or pull requests
I described it in the blog-post Object-Functional Concurrent Programming with Javaslang.
Signatures:
Depends on: #1529
Example impl:
The text was updated successfully, but these errors were encountered: