0.1.1-develop.1416 • Published 8 months ago

@proto-kit/sequencer v0.1.1-develop.1416

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

YAB: Sequencer

This package includes everything that is required to run a sequencer

Sequencer

A Sequencer is structure similar to a Runtime. It is given a list of SequencerModules, that are then dynamically instantiated and resolved by the Sequencer. When calling .start() on a sequencer, the sequencer starts up all the modules and exposes the services provided by them.

Sequencer modules

A Sequencer module is an abstract class that needs to be extended by any concrete sequencer module implementation(s).

export abstract class SequencerModule<
  Config
> extends ConfigurableModule<Config> {
  public abstract start(): Promise<void>;

  // more properties
}

The generic type parameter Config refers to the configuration object a module consumes. More on that below.

The start() method is called by the sequencer when it gets started. It returns a Promise that has to resolve after initialization, since it will block in the sequencer startup. That means that you mustn't await server.start() for example.

0.1.1-develop.1366

10 months ago

0.1.1-develop.1376

9 months ago

0.1.1-develop.1378

9 months ago

0.1.1-develop.1414

8 months ago

0.1.1-develop.1416

8 months ago

0.1.1-develop.1383

9 months ago

0.1.1-develop.1343

10 months ago

0.1.1-develop.1347

10 months ago

0.1.1-develop.1309

10 months ago

0.1.1-develop.1350

10 months ago

0.1.1-develop.1352

10 months ago

0.1.1-develop.0

10 months ago

0.1.1-develop.1355

10 months ago

0.1.1-develop.1314

10 months ago

0.1.1-develop.1313

10 months ago

0.1.1-develop.1316

10 months ago

0.1.1-develop.1315

10 months ago