Julia: `remotecall_fetch` and `CallMsg` don't accept type (constructor) functions

Created on 10 Jan 2020  路  1Comment  路  Source: JuliaLang/julia

We had a problem trying to use remotecall_fetch(OurType, worker, args...) because OurType isn't a Function.

I'm wondering if the types at https://github.com/JuliaLang/julia/blob/master/stdlib/Distributed/src/messages.jl#L39 are too restrictive? Could this be Callable, or Any? (Or might this cause any potential problems with remote workers that I'm not aware of?)

good first issue parallel

Most helpful comment

The field type should be Any, I'd say. The first argument to remotecall etc. is already unrestricted, so that looks like an oversight.

>All comments

The field type should be Any, I'd say. The first argument to remotecall etc. is already unrestricted, so that looks like an oversight.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dpsanders picture dpsanders  路  3Comments

musm picture musm  路  3Comments

felixrehren picture felixrehren  路  3Comments

sbromberger picture sbromberger  路  3Comments

iamed2 picture iamed2  路  3Comments