test_class.declarator: closed = false
test_class.original_string: boolean closed = false;
test_class.type: boolean
test_class.var_name: closed
test_class.declarator: resource
test_class.original_string: Resource resource;
test_class.type: Resource
test_class.var_name: resource
test_class.file: cyclops/src/test/java/cyclops/reactive/ManagedTest.java
test_class.identifier: ManagedTest
test_case.body: @Test
      public void traverse(){
          Managed<Seq<Future<String>>> writers = Managed.traverse(Seq.of("a", "b", "c"),ManagedTest::acquireNamed);
          Try<Seq<Future<String>>, Throwable> t = writers.run();
  
          assertTrue(t.isSuccess());
          assertThat(t.map(s->s.map(f->f.orElse("-1")).join(",")).orElse("-"),equalTo("A,B,C"));
      }
test_case.class_method_signature: ManagedTest.traverse()
test_case.full_signature: @Test public void traverse()
test_case.identifier: traverse
test_case.invocations: traverse of run assertTrue isSuccess assertThat orElse map join map orElse equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void traverse()
focal_class.file: cyclops/src/main/java/cyclops/reactive/Managed.java
focal_class.identifier: Managed
focal_class.interfaces: implements Higher<managed,T>,To<Managed<T>>, Publisher<T>
focal_class.class_method_signature: Managed.managed(T acq, Consumer<T> cleanup)
focal_class.full_signature: public static Managed<T> managed(T acq, Consumer<T> cleanup)
focal_class.identifier: managed
focal_class.modifiers: public static
focal_class.parameters: (T acq, Consumer<T> cleanup)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> managed(T acq, Consumer<T> cleanup)
focal_class.class_method_signature: Managed.managed(T acq)
focal_class.full_signature: public static Managed<T> managed(T acq)
focal_class.identifier: managed
focal_class.modifiers: public static
focal_class.parameters: (T acq)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> managed(T acq)
focal_class.class_method_signature: Managed.of(Publisher<T> acq, Consumer<T> cleanup)
focal_class.full_signature: public static Managed<T> of(Publisher<T> acq, Consumer<T> cleanup)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Publisher<T> acq, Consumer<T> cleanup)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(Publisher<T> acq, Consumer<T> cleanup)
focal_class.class_method_signature: Managed.of(Supplier<? extends T> acq, Consumer<T> cleanup)
focal_class.full_signature: public static Managed<T> of(Supplier<? extends T> acq, Consumer<T> cleanup)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Supplier<? extends T> acq, Consumer<T> cleanup)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(Supplier<? extends T> acq, Consumer<T> cleanup)
focal_class.class_method_signature: Managed.of(Supplier<? extends T> acq)
focal_class.full_signature: public static Managed<T> of(Supplier<? extends T> acq)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Supplier<? extends T> acq)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(Supplier<? extends T> acq)
focal_class.class_method_signature: Managed.checked(CheckedSupplier<? extends T> acq)
focal_class.full_signature: public static Managed<T> checked(CheckedSupplier<? extends T> acq)
focal_class.identifier: checked
focal_class.modifiers: public static
focal_class.parameters: (CheckedSupplier<? extends T> acq)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> checked(CheckedSupplier<? extends T> acq)
focal_class.class_method_signature: Managed.of(Publisher<T> acq)
focal_class.full_signature: public static Managed<T> of(Publisher<T> acq)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Publisher<T> acq)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(Publisher<T> acq)
focal_class.class_method_signature: Managed.of(IO<T> acquire, Consumer<T> cleanup)
focal_class.full_signature: public static Managed<T> of(IO<T> acquire, Consumer<T> cleanup)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (IO<T> acquire, Consumer<T> cleanup)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(IO<T> acquire, Consumer<T> cleanup)
focal_class.class_method_signature: Managed.of(IO<T> acquire)
focal_class.full_signature: public static Managed<T> of(IO<T> acquire)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (IO<T> acquire)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> of(IO<T> acquire)
focal_class.class_method_signature: Managed.sequence(Iterable<? extends Managed<T>> all)
focal_class.full_signature: public static Managed<Seq<T>> sequence(Iterable<? extends Managed<T>> all)
focal_class.identifier: sequence
focal_class.modifiers: public static
focal_class.parameters: (Iterable<? extends Managed<T>> all)
focal_class.return: Managed<Seq<T>>
focal_class.signature: Managed<Seq<T>> sequence(Iterable<? extends Managed<T>> all)
focal_class.class_method_signature: Managed.with(Function<? super T, ? extends R2> fn)
focal_class.full_signature: public Tupled<T,R2> with(Function<? super T, ? extends R2> fn)
focal_class.identifier: with
focal_class.modifiers: public
focal_class.parameters: (Function<? super T, ? extends R2> fn)
focal_class.return: Tupled<T,R2>
focal_class.signature: Tupled<T,R2> with(Function<? super T, ? extends R2> fn)
focal_class.class_method_signature: Managed.traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_class.full_signature: public static Managed<Seq<R>> traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_class.identifier: traverse
focal_class.modifiers: public static
focal_class.parameters: (Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_class.return: Managed<Seq<R>>
focal_class.signature: Managed<Seq<R>> traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_class.class_method_signature: Managed.traverse(Function<? super T,? extends R> fn, Iterable<Managed<T>> stream)
focal_class.full_signature: public static Managed<Seq<R>> traverse(Function<? super T,? extends R> fn, Iterable<Managed<T>> stream)
focal_class.identifier: traverse
focal_class.modifiers: public static
focal_class.parameters: (Function<? super T,? extends R> fn, Iterable<Managed<T>> stream)
focal_class.return: Managed<Seq<R>>
focal_class.signature: Managed<Seq<R>> traverse(Function<? super T,? extends R> fn, Iterable<Managed<T>> stream)
focal_class.class_method_signature: Managed.narrow(Managed<? extends T> broad)
focal_class.full_signature: public static Managed<T> narrow(Managed<? extends T> broad)
focal_class.identifier: narrow
focal_class.modifiers: public static
focal_class.parameters: (Managed<? extends T> broad)
focal_class.return: Managed<T>
focal_class.signature: Managed<T> narrow(Managed<? extends T> broad)
focal_class.class_method_signature: Managed.zip(Managed<T2> b, BiFunction<? super T,? super T2,? extends R> fn)
focal_class.full_signature: public final Managed<R> zip(Managed<T2> b, BiFunction<? super T,? super T2,? extends R> fn)
focal_class.identifier: zip
focal_class.modifiers: public final
focal_class.parameters: (Managed<T2> b, BiFunction<? super T,? super T2,? extends R> fn)
focal_class.return: Managed<R>
focal_class.signature: Managed<R> zip(Managed<T2> b, BiFunction<? super T,? super T2,? extends R> fn)
focal_class.class_method_signature: Managed.apply(Function<? super T,? extends IO<R>> fn)
focal_class.full_signature: public abstract IO<R> apply(Function<? super T,? extends IO<R>> fn)
focal_class.identifier: apply
focal_class.modifiers: public abstract
focal_class.parameters: (Function<? super T,? extends IO<R>> fn)
focal_class.return: IO<R>
focal_class.signature: IO<R> apply(Function<? super T,? extends IO<R>> fn)
focal_class.class_method_signature: Managed.forEach(Consumer<? super T> onNext,Consumer<Throwable> errorHandler)
focal_class.full_signature: public final void forEach(Consumer<? super T> onNext,Consumer<Throwable> errorHandler)
focal_class.identifier: forEach
focal_class.modifiers: public final
focal_class.parameters: (Consumer<? super T> onNext,Consumer<Throwable> errorHandler)
focal_class.return: void
focal_class.signature: void forEach(Consumer<? super T> onNext,Consumer<Throwable> errorHandler)
focal_class.class_method_signature: Managed.run()
focal_class.full_signature: public final Try<T,Throwable> run()
focal_class.identifier: run
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Try<T,Throwable>
focal_class.signature: Try<T,Throwable> run()
focal_class.class_method_signature: Managed.runAndThrowUnexpected()
focal_class.full_signature: public final T runAndThrowUnexpected()
focal_class.identifier: runAndThrowUnexpected
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T runAndThrowUnexpected()
focal_class.class_method_signature: Managed.foldRun(Function<? super Try<T,Throwable>,? extends R> transform)
focal_class.full_signature: public final R foldRun(Function<? super Try<T,Throwable>,? extends R> transform)
focal_class.identifier: foldRun
focal_class.modifiers: public final
focal_class.parameters: (Function<? super Try<T,Throwable>,? extends R> transform)
focal_class.return: R
focal_class.signature: R foldRun(Function<? super Try<T,Throwable>,? extends R> transform)
focal_class.class_method_signature: Managed.future()
focal_class.full_signature: public final Future<T> future()
focal_class.identifier: future
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Future<T>
focal_class.signature: Future<T> future()
focal_class.class_method_signature: Managed.runAsync(Executor ex)
focal_class.full_signature: public final Try<T,Throwable> runAsync(Executor ex)
focal_class.identifier: runAsync
focal_class.modifiers: public final
focal_class.parameters: (Executor ex)
focal_class.return: Try<T,Throwable>
focal_class.signature: Try<T,Throwable> runAsync(Executor ex)
focal_class.class_method_signature: Managed.stream()
focal_class.full_signature: public ReactiveSeq<T> stream()
focal_class.identifier: stream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ReactiveSeq<T>
focal_class.signature: ReactiveSeq<T> stream()
focal_class.class_method_signature: Managed.checkedMap(CheckedFunction<? super T, ? extends R> mapper)
focal_class.full_signature: public Managed<R> checkedMap(CheckedFunction<? super T, ? extends R> mapper)
focal_class.identifier: checkedMap
focal_class.modifiers: public
focal_class.parameters: (CheckedFunction<? super T, ? extends R> mapper)
focal_class.return: Managed<R>
focal_class.signature: Managed<R> checkedMap(CheckedFunction<? super T, ? extends R> mapper)
focal_class.class_method_signature: Managed.map(Function<? super T, ? extends R> mapper)
focal_class.full_signature: public Managed<R> map(Function<? super T, ? extends R> mapper)
focal_class.identifier: map
focal_class.modifiers: public
focal_class.parameters: (Function<? super T, ? extends R> mapper)
focal_class.return: Managed<R>
focal_class.signature: Managed<R> map(Function<? super T, ? extends R> mapper)
focal_class.class_method_signature: Managed.checkedFlatMap(CheckedFunction<? super T, Managed<R>> f)
focal_class.full_signature: public Managed<R> checkedFlatMap(CheckedFunction<? super T, Managed<R>> f)
focal_class.identifier: checkedFlatMap
focal_class.modifiers: public
focal_class.parameters: (CheckedFunction<? super T, Managed<R>> f)
focal_class.return: Managed<R>
focal_class.signature: Managed<R> checkedFlatMap(CheckedFunction<? super T, Managed<R>> f)
focal_class.class_method_signature: Managed.flatMap(Function<? super T, Managed<R>> f)
focal_class.full_signature: public Managed<R> flatMap(Function<? super T, Managed<R>> f)
focal_class.identifier: flatMap
focal_class.modifiers: public
focal_class.parameters: (Function<? super T, Managed<R>> f)
focal_class.return: Managed<R>
focal_class.signature: Managed<R> flatMap(Function<? super T, Managed<R>> f)
focal_class.class_method_signature: Managed.semigroup(Semigroup<T> s)
focal_class.full_signature: public static Semigroup<Managed<T>> semigroup(Semigroup<T> s)
focal_class.identifier: semigroup
focal_class.modifiers: public static
focal_class.parameters: (Semigroup<T> s)
focal_class.return: Semigroup<Managed<T>>
focal_class.signature: Semigroup<Managed<T>> semigroup(Semigroup<T> s)
focal_class.class_method_signature: Managed.monoid(Monoid<T> s)
focal_class.full_signature: public static Monoid<Managed<T>> monoid(Monoid<T> s)
focal_class.identifier: monoid
focal_class.modifiers: public static
focal_class.parameters: (Monoid<T> s)
focal_class.return: Monoid<Managed<T>>
focal_class.signature: Monoid<Managed<T>> monoid(Monoid<T> s)
focal_class.class_method_signature: Managed.subscribe(Subscriber<? super T> s)
focal_class.full_signature: @Override public void subscribe(Subscriber<? super T> s)
focal_class.identifier: subscribe
focal_class.modifiers: @Override public
focal_class.parameters: (Subscriber<? super T> s)
focal_class.return: void
focal_class.signature: void subscribe(Subscriber<? super T> s)
focal_class.class_method_signature: Managed.io()
focal_class.full_signature: public IO<T> io()
focal_class.identifier: io
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: IO<T>
focal_class.signature: IO<T> io()
focal_class.class_method_signature: Managed.io(Function<T,IO<T>> convert)
focal_class.full_signature:  IO<T> io(Function<T,IO<T>> convert)
focal_class.identifier: io
focal_class.parameters: (Function<T,IO<T>> convert)
focal_class.return: IO<T>
focal_class.signature: IO<T> io(Function<T,IO<T>> convert)
focal_method.body: public static <T,R> Managed<Seq<R>> traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn) {
          Seq<Managed<R>> s = Seq.fromIterable(stream).map(fn.andThen(Managed::narrow));
          return sequence(s);
      }
focal_method.class_method_signature: Managed.traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_method.full_signature: public static Managed<Seq<R>> traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_method.identifier: traverse
focal_method.invocations: map fromIterable andThen sequence
focal_method.modifiers: public static
focal_method.parameters: (Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)
focal_method.return: Managed<Seq<R>>
focal_method.signature: Managed<Seq<R>> traverse(Iterable<T> stream,Function<? super T,Managed<? extends R>> fn)