Skip to content

put(RemoteRef(), obj) semantics are troublesome #5819

Closed
@timholy

Description

@timholy

I expected put to work like push!, and so had code like this:

getnextimg = put(RemoteRef(), frameindex -> img[:,:,frameindex])

However, unlike push!, this doesn't return the container (the RemoteRef), it returns the object. Since we can't currently pass anonymous functions between processes, this caused some hard-to-decipher hangs and error messages.

Is it conceivable to change it to put! and have it return the RemoteRef?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions