JuliaLang / JuliaLang/Distributed.jl
Can we have `bind(::RemoteChannel, ::Process)`?
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 55
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing bind methods and wait(::Process) behavior, then inspect how RemoteChannel handles closure and exceptions. Implement the requested process-lifetime binding so an early exit closes the channel and a non-normal exit propagates an exception; done means a waiting process no longer hangs in either case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100