jikan0
v2.0.0
Published
Convenience exports for the timer engine and stateful adapters.
Readme
jikan0
Convenience exports for the timer engine and stateful adapters.
import { empty, push, tick } from 'jikan0';
const queued = push([{ kind: 'exercise', duration: 1000 }])(empty);
if (queued.ok) {
const elapsed = tick(400)(queued.state);
if (elapsed.ok) console.log(elapsed.state);
}Consumers own state and supply elapsed time. See the engine and adapters for APIs and constraints.
