FUZD / @fuzd/server / createProcessingLoop
Function: createProcessingLoop()
createProcessingLoop(
app,options):object
Run each action over and over, each on its own: back to back while its runs stop on their budget (a burst is due), every intervalMs otherwise. A run of an action never starts before its previous one is over. Several loops (processes) on one database are safe: runs claim what they process (docs/adr/0004-claim-due-items-with-a-lease.md).
Parameters
app
options
Returns
object
stop()
Stop starting runs, and wait for the ones in progress.
Returns
Promise<void>
Defined in
packages/server/src/processing-loop.ts:35