Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have bind(::RemoteChannel, ::Process)? #88

Open
NHDaly opened this issue Feb 27, 2023 · 1 comment
Open

Can we have bind(::RemoteChannel, ::Process)? #88

NHDaly opened this issue Feb 27, 2023 · 1 comment

Comments

@NHDaly
Copy link
Member

NHDaly commented Feb 27, 2023

If you have one process waiting on a RemoteChannel that is supposed to be filled then closed by another process, but that process crashes before it's finished, the first process will hang forever.

It seems that what we want is to wait on the lifetime of the Process, and if the process exits early, to close the channel. And if the process exits non-normally, to throw an exception on the channel.

This is exactly what bind does, but there is no overload for RemoteChannels. Can we add one?

I think it could use wait(::Process) which already exists.

@NHDaly
Copy link
Member Author

NHDaly commented Feb 27, 2023

cc: @nickrobinson251

@vtjnash vtjnash transferred this issue from JuliaLang/julia Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant