Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix(effect): remove extra type param from IO.run (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru authored Oct 16, 2017
1 parent eacf892 commit df0f41a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/funfix-effect/src/io.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { Either, Try, Option } from "funfix-core";
import { ICancelable, StackedCancelable, Scheduler, Future, ExecutionModel, Duration } from "funfix-exec";

declare export class IO<+A> {
run<A>(ec?: Scheduler): Future<A>;
runOnComplete<A>(cb: (result: Try<A>) => void, ec?: Scheduler): ICancelable;
run(ec?: Scheduler): Future<A>;
runOnComplete(cb: (result: Try<A>) => void, ec?: Scheduler): ICancelable;

attempt(): IO<Either<Throwable, A>>;
asyncBoundary(ec?: Scheduler): IO<A>;
Expand Down
4 changes: 2 additions & 2 deletions packages/funfix-effect/src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export class IO<A> {
* @return a `Future` that will eventually complete with the
* result produced by this `IO` on evaluation
*/
run<A>(ec: Scheduler = Scheduler.global.get()): Future<A> {
run(ec: Scheduler = Scheduler.global.get()): Future<A> {
return taskToFutureRunLoop(this, ec)
}

Expand Down Expand Up @@ -457,7 +457,7 @@ export class IO<A> {
* the running computation, assuming that the implementation
* of the source `IO` can be cancelled
*/
runOnComplete<A>(
runOnComplete(
cb: (result: Try<A>) => void,
ec: Scheduler = Scheduler.global.get()): ICancelable {

Expand Down

0 comments on commit df0f41a

Please sign in to comment.