functai for TypeScript - v0.1.0
    Preparing search index...

    Interface JournalSetting

    interface JournalSetting {
        backoff?: number;
        batch?: number;
        mode?: "required" | "best-effort";
        retries?: number;
        store: EventStore;
        timeout?: number;
    }
    Index
    backoff?: number

    Milliseconds before the first resend of an append; each next one waits twice as long, up to 2 s (default 50).

    batch?: number

    Most events in one append (default 64; 1 sends each event alone).

    mode?: "required" | "best-effort"

    "best-effort" (the default): the call never waits. "required": it waits at three barriers, and raises JournalError when they fail.

    retries?: number

    Sends of one append, after the first, before giving up on it for now (default 2).

    store: EventStore
    timeout?: number

    Milliseconds (default 30,000): the longest an append is waited for (its signal aborts then, and no answer came), and the longest a barrier waits before the call goes on as if the journal did not answer. Infinity waits for ever.