@omegup/msync 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +3 -3
- package/index.js +3 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1147,8 +1147,8 @@ const race = (sources) => {
|
|
|
1147
1147
|
const nextWinner = (previousWinner, previousWinnerNextFrame, sources, interrupt) => {
|
|
1148
1148
|
const { frame: previousFrame, key } = previousWinner;
|
|
1149
1149
|
if (!interrupt?.(key) && previousFrame.info.job) {
|
|
1150
|
-
return previousWinnerNextFrame.then(previousFrameSuccessor => {
|
|
1151
|
-
if (
|
|
1150
|
+
return previousWinnerNextFrame.then((previousFrameSuccessor) => {
|
|
1151
|
+
if (previousFrameSuccessor.info.job) {
|
|
1152
1152
|
return { frame: previousFrameSuccessor, key };
|
|
1153
1153
|
}
|
|
1154
1154
|
return race(sources);
|
|
@@ -1214,7 +1214,7 @@ class Machine {
|
|
|
1214
1214
|
return runCont(run, cb);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
const wrap = (root) =>
|
|
1217
|
+
const wrap = (root) => root;
|
|
1218
1218
|
const runCont = async (it, cb) => {
|
|
1219
1219
|
const { next, stop, clear } = it();
|
|
1220
1220
|
const res = await next.then(next => ({ ok: true, next }), err => ({ ok: false, err }));
|
package/index.js
CHANGED
|
@@ -1149,8 +1149,8 @@ const race = (sources) => {
|
|
|
1149
1149
|
const nextWinner = (previousWinner, previousWinnerNextFrame, sources, interrupt) => {
|
|
1150
1150
|
const { frame: previousFrame, key } = previousWinner;
|
|
1151
1151
|
if (!interrupt?.(key) && previousFrame.info.job) {
|
|
1152
|
-
return previousWinnerNextFrame.then(previousFrameSuccessor => {
|
|
1153
|
-
if (
|
|
1152
|
+
return previousWinnerNextFrame.then((previousFrameSuccessor) => {
|
|
1153
|
+
if (previousFrameSuccessor.info.job) {
|
|
1154
1154
|
return { frame: previousFrameSuccessor, key };
|
|
1155
1155
|
}
|
|
1156
1156
|
return race(sources);
|
|
@@ -1216,7 +1216,7 @@ class Machine {
|
|
|
1216
1216
|
return runCont(run, cb);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
const wrap = (root) =>
|
|
1219
|
+
const wrap = (root) => root;
|
|
1220
1220
|
const runCont = async (it, cb) => {
|
|
1221
1221
|
const { next, stop, clear } = it();
|
|
1222
1222
|
const res = await next.then(next => ({ ok: true, next }), err => ({ ok: false, err }));
|