Returns a Stream which adds message and error event listeners to given worker and then emits received values.
remarks
If terminate is true (default), the worker will be terminated when the stream is being closed (either directly or indirectly, i.e. if the user called ISubscriber.done on the stream or the last child subscription has unsubscribed, depending on config options).
As with postWorker, the worker can be an existing Worker instance, a JS source code Blob or an URL string. In the latter two cases, a worker is created automatically.
Returns a Stream which adds
message
anderror
event listeners to givenworker
and then emits received values.If
terminate
is true (default), the worker will be terminated when the stream is being closed (either directly or indirectly, i.e. if the user called ISubscriber.done on the stream or the last child subscription has unsubscribed, depending on config options).As with postWorker, the
worker
can be an existingWorker
instance, a JS source codeBlob
or an URL string. In the latter two cases, a worker is created automatically.