# Nonblocking recvfrom?

**URL:** <https://discourse.julialang.org/t/nonblocking-recvfrom/77740>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 11, 2022, 8:53am UTC](https://discourse.julialang.org/t/nonblocking-recvfrom/77740 "2022-03-11T08:53:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [March 11, 2022, 12:58pm UTC](https://discourse.julialang.org/t/nonblocking-recvfrom/77740/6 "2022-03-11T12:58:05Z")

</div>

Well, as far as I know, there is no nonblocking `recvfrom` (assuming you’re talking about `Sockets.recvfrom`). There’s also no good way to [interrupt a running async task](https://discourse.julialang.org/t/stop-terminate-a-sub-task-started-with-async/32193), which is why I suggested using a `Timer` to periodically interrupt the blocking behavior, then check the `Channel` for whether or not the thread should terminate or not, then relaunch a `Timer` and block again.

---

_[View the full topic](https://discourse.julialang.org/t/nonblocking-recvfrom/77740)._
