channel: check for a coroutine function