Skip to content

timing issue establishing a mailbox #11

Open
@bsutton

Description

@bsutton

DCli is attempting to use a mailbox to spawn process synchronously.

My primary isolate spawns a secondary isolate which runs a process.

The primary isolate needs to call take() to receive the secondary isolate's send port.

The issue is that we have a timing problem.

If I call take() in the primary isolate before the secondary isolate has a chance to spawn then take() essentially blocks the secondary isolate from spawning.

I can't use an await when spawning the secondary isolate as the core reason for using a mailbox is to spawn the process synchronously.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions