The constructor that creates a RemoteChannel with a specific size and type requires a function as the first argument like RemoteChannel(()->Channel{Int}(10), pid)
.
Using lambda functions as parameters is inconvenient because we have to write a longer code than we only use values.
Just adding a new constructor could solve this problem. However, no one created this.
So I guess there must be a reason why people have not implemented it.
Can anybody tell me the reason or your thought?