Allows writing simple synchronous function an use them later as asynchronous