finishTask

Finish a JS task. Doesn't actually stop the task on the JS side, only removes it from the list of active tasks and notifies listeners.

Parameters

taskId

the unique id returned by .startTask.