Keeps the options; the thread starts at the first question.
the connection, the bound, and a test backend
Asks a named question and waits for the answer.
one of persistence/directory_queries.js's queries (or
whatever a test backend answers)
its arguments
the answer
The bridge's figures since the process started.
started threads, questions, timeouts, failures and wait times
Ends the thread, for a clean stop and for tests.
a promise that settles when the thread has gone
StaticbudgetWhether a budget is in force here: an open slot (for tests and for a reader of the logs).
true inside a request's open budget
StaticoutsideStaticrunRuns fn with a budget on the synchronous waits query() does
inside it (#359). A non-positive or non-finite budget runs fn
with none. The wait is cumulative across every question in the
call, including one a timeout cut short. When lifetime is given
(the request's response), the budget ends at its finish or
close: anything fn started that is still running afterwards
asks with no budget.
the budget, in milliseconds
the work
Optionallifetime: BudgetLifetime
what ends the budget, or none
whatever fn returns
Asks the store a question synchronously, through a worker thread with a connection of its own (#349).