@matechs/effect
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -9,2 +9,3 @@ import { Bifunctor3 } from "fp-ts/lib/Bifunctor"; | ||
import { Semigroup } from "fp-ts/lib/Semigroup"; | ||
import * as ex from "./original/exit"; | ||
import { Cause, Exit } from "./original/exit"; | ||
@@ -664,2 +665,9 @@ import { Runtime } from "./original/runtime"; | ||
/** | ||
* Run the given IO syncroniously | ||
* returns left if any async operation | ||
* is found | ||
* @param io | ||
*/ | ||
export declare function runSync<E, A>(io: Effect<{}, E, A>): Ei.Either<Error, ex.Exit<E, A>>; | ||
/** | ||
* Run an IO and return a Promise of its result | ||
@@ -666,0 +674,0 @@ * |
@@ -39,2 +39,3 @@ "use strict"; | ||
var merge_1 = require("./utils/merge"); | ||
var driverSync_1 = require("./driverSync"); | ||
var EffectTag; | ||
@@ -1100,2 +1101,12 @@ (function (EffectTag) { | ||
/** | ||
* Run the given IO syncroniously | ||
* returns left if any async operation | ||
* is found | ||
* @param io | ||
*/ | ||
function runSync(io) { | ||
return new driverSync_1.DriverSyncImpl().start(io); | ||
} | ||
exports.runSync = runSync; | ||
/** | ||
* Run an IO and return a Promise of its result | ||
@@ -1102,0 +1113,0 @@ * |
{ | ||
"name": "@matechs/effect", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "private": false, | ||
}, | ||
"gitHead": "9cd0d60c7250eba0d736cd863daac1aa8e1405e6" | ||
"gitHead": "f32306b49c070dd6448a9950f8cf300ad41680c9" | ||
} |
Sorry, the diff of this file is not supported yet
425431
90
7407