You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to execute different parts of Isolate in the same thread ?
For example, I have an isolate function with await for (final element in transmitter) where transmitter is ReceivePort.
And I've noticed that await for executed with other (getttid() ID) than first line of code in my isolate.
In my case I communicate with native library through FFI and that library uses thread_local values.
So when I'm handling messages from my transmitter I'm executing functions in that library.
But because of different threads my execution is falling.
I want ask about possibility to bind/pin Isolate to specific thread.
The text was updated successfully, but these errors were encountered:
Hello everyone
Is it possible to execute different parts of Isolate in the same thread ?
For example, I have an isolate function with
await for (final element in transmitter)
where transmitter is ReceivePort.And I've noticed that
await for
executed with other (getttid() ID) than first line of code in my isolate.In my case I communicate with native library through FFI and that library uses thread_local values.
So when I'm handling messages from my transmitter I'm executing functions in that library.
But because of different threads my execution is falling.
I want ask about possibility to bind/pin Isolate to specific thread.
The text was updated successfully, but these errors were encountered: