Miss any of our Open RFC calls?Watch the recordings here! »

xcraft-core-activity

2.1.2 • Public • Published

xcraft-core-activity

Handle the activities for the Xcraft server. An activity begins with a command and accordingly to some conditions, the command is push in the waiting or in the running list.

The activity manager looks like a trivial scheduler.

A command (new activity) is executed only if:

  • The same command with the same orc is not already executing.
  • The activity is parallel or no other exclusive activity is already executing.

API

There are only two public (implemented) methods.

  • status
  • execute

Install

npm i [email protected]

Version

2.1.2

License

MIT

Unpacked Size

7.59 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar