MCPcopy Create free account
hub / github.com/jakesgordon/javascript-state-machine / cancel

Function cancel

test/lifecycle.js:550–554  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

548 });
549 },
550 cancel = function(ms) {
551 return new Promise(function(resolve, reject) {
552 setTimeout(function() { reject('rejected'); }, ms);
553 });
554 },
555 fsm = new StateMachine({
556 transitions: [
557 { name: 'step', from: 'none', to: 'complete' }

Callers 1

lifecycle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected