# Making async code synchronous

**URL:** <https://forum.elixirforum.com/t/making-async-code-synchronous/72630>\
**Category:** Questions\
**Tags:** nif\
**Created:** [September 23, 2025, 3:07am UTC](https://forum.elixirforum.com/t/making-async-code-synchronous/72630 "2025-09-23T03:07:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![benwilson512](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/benwilson512/32/1457_2.png) [@benwilson512](https://forum.elixirforum.com/u/benwilson512)\
**Post date:** [September 23, 2025, 11:56am UTC](https://forum.elixirforum.com/t/making-async-code-synchronous/72630/4 "2025-09-23T11:56:58Z")

</div>

Why wrap it in a task at all? Can you simply have a function that calls the NIF and then does a receive right after?

What does this NIF do btw? How long does it run?

---

_[View the full topic](https://forum.elixirforum.com/t/making-async-code-synchronous/72630)._
