Skip to content

API Worker

LenweSaralonde edited this page May 13, 2020 · 1 revision

Worker manager

Functions

Musician.Worker.Set

Set worker function

Musician.Worker.Set(worker, onError)

Arguments

  • worker (function)
  • onError (function) (optional)

Musician.Worker.Remove

Remove worker function

Musician.Worker.Remove(worker)

Arguments

  • worker (function)

Musician.Worker.OnUpdate

Run workers on each frame

Musician.Worker.OnUpdate(elapsed)

Arguments

  • elapsed (number)

Clone this wiki locally