UNPKG

atombeak

Version:

Create asynchronous atomic functions!

11 lines (10 loc) 528 B
import { Operation } from './Operation'; import { Log } from '../Log'; import { AbstractOperation } from './internal'; import { Trampoline } from '../Trampoline'; export declare class MappedOperation<Outer, Intermediate, Inner, Action> extends AbstractOperation<Outer, Inner, Action> { private readonly operation; private readonly fn; constructor(operation: Operation<Outer, Intermediate, Action>, fn: (intermediate: Intermediate) => Inner); execute(log: Log<Outer, Action>): Trampoline<Outer, Inner, Action>; }