Prototype of asynchronous calls based on channels