@matechs/effect
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -612,3 +612,3 @@ import { either as Ei, function as F, option as Op, array as Ar, tree as TR, record as RE } from "fp-ts"; | ||
export const until = (f) => asyncTotal((res) => { | ||
const handle = setTimeout(() => { | ||
const handle = setInterval(() => { | ||
// keep process going | ||
@@ -618,6 +618,6 @@ }, 60000); | ||
res(undefined); | ||
clearTimeout(handle); | ||
clearInterval(handle); | ||
}); | ||
return (cb) => { | ||
clearTimeout(handle); | ||
clearInterval(handle); | ||
cb(); | ||
@@ -624,0 +624,0 @@ }; |
@@ -738,3 +738,3 @@ "use strict"; | ||
return asyncTotal(function (res) { | ||
var handle = setTimeout(function () { | ||
var handle = setInterval(function () { | ||
// keep process going | ||
@@ -744,6 +744,6 @@ }, 60000); | ||
res(undefined); | ||
clearTimeout(handle); | ||
clearInterval(handle); | ||
}); | ||
return function (cb) { | ||
clearTimeout(handle); | ||
clearInterval(handle); | ||
cb(); | ||
@@ -750,0 +750,0 @@ }; |
{ | ||
"name": "@matechs/effect", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"license": "MIT", | ||
@@ -43,3 +43,3 @@ "private": false, | ||
}, | ||
"gitHead": "ca780a034d8fd4e4ce1a64a618725e6730021dd7" | ||
"gitHead": "6bbef56b33af53d44b06b65b8437106877702de2" | ||
} |
644473