UNPKG

atombeak

Version:

Create asynchronous atomic functions!

24 lines (23 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SHOULD_RESTART = 'SHOULD_RESTART'; function shouldRestart(attempt, log) { return { type: exports.SHOULD_RESTART, attempt: attempt, log: log }; } exports.shouldRestart = shouldRestart; exports.SHOULD_CONTINUE = 'SHOULD_CONTINUE'; function shouldContinue(attempt, log) { return { type: exports.SHOULD_CONTINUE, attempt: attempt, log: log }; } exports.shouldContinue = shouldContinue; exports.RESOLVE = 'RESOLVE'; exports.NO_OP = 'NO_OP'; exports.noOp = { type: exports.NO_OP };