# How to send to/receive from channel without blocking?

**URL:** <https://discuss.kotlinlang.org/t/how-to-send-to-receive-from-channel-without-blocking/18603>\
**Category:** Language Design\
**Created:** [July 28, 2020, 4:25am UTC](https://discuss.kotlinlang.org/t/how-to-send-to-receive-from-channel-without-blocking/18603 "2020-07-28T04:25:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![socialguy](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/socialguy/32/7748_2.png) [@socialguy](https://discuss.kotlinlang.org/u/socialguy)\
**Post date:** [July 28, 2020, 8:56am UTC](https://discuss.kotlinlang.org/t/how-to-send-to-receive-from-channel-without-blocking/18603/5 "2020-07-28T08:56:21Z")

</div>

> [@nickallendev](#):
>
> I’m guessing you want the initial `send` and “request-consumer” and “response-consumer” to run in parallel in different coroutines.

The idea is for all three to launch at the same time, but then wait for `response-consumer` until success or timeout. I don’t care about `request-consumer`, it can do whatever it can within the given time, then get cancelled by the timeout. Is that possible?

---

_[View the full topic](https://discuss.kotlinlang.org/t/how-to-send-to-receive-from-channel-without-blocking/18603)._
