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
There appears to be a fundamental limitation when attempting to use Comlink to enable bidirectional communication between the main thread and a worker thread simultaneously. Current behavior suggests that Comlink only supports unidirectional communication effectively, meaning that either the main thread can expose and the worker can consume, or vice versa, but not both ways at once. Explicit guidance on this in the documentation could help avoid confusion and save time troubleshooting.
Expected Outcome:
It would be beneficial if the documentation could explicitly mention:
Why Comlink does not support simultaneous bidirectional exposure (main ⇄ worker).
Any underlying technical constraints, such as those related to structured cloning or transferables, that impact this behavior.
Workarounds or best practices for developers needing two-way interaction.
The text was updated successfully, but these errors were encountered:
There appears to be a fundamental limitation when attempting to use Comlink to enable bidirectional communication between the main thread and a worker thread simultaneously. Current behavior suggests that Comlink only supports unidirectional communication effectively, meaning that either the main thread can expose and the worker can consume, or vice versa, but not both ways at once. Explicit guidance on this in the documentation could help avoid confusion and save time troubleshooting.
Expected Outcome:
It would be beneficial if the documentation could explicitly mention:
The text was updated successfully, but these errors were encountered: