iandis / isolated_worker

An isolated worker for Flutter (Isolate) and Web (Web Worker). Behaves almost the same as the compute function, except it is not a one-off worker.
MIT License
41 stars 11 forks source link

Bidirectional Communication with worker #18

Closed yashhema closed 2 years ago

yashhema commented 2 years ago

Hello, Is it possible to have bidirectional communication with the worker . I want to use isolate for Firebase Query listener, it needs to reply back the messages and also I need to shut down the listener or change its parameter on go

regard

iandis commented 2 years ago

Hi, for that kind of use-case I'd recommend you to use Isolate instead as this package is just to cover similar use-case to the compute function using a single long-lived Isolate