# Calling coroutines from sync code (2)

**URL:** <https://discuss.python.org/t/calling-coroutines-from-sync-code-2/24093>\
**Category:** Async-SIG\
**Created:** [February 21, 2023, 7:27pm UTC](https://discuss.python.org/t/calling-coroutines-from-sync-code-2/24093 "2023-02-21T19:27:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![guido](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/guido/32/21_2.png) [@guido](https://discuss.python.org/u/guido)\
**Post date:** [February 22, 2023, 4:26pm UTC](https://discuss.python.org/t/calling-coroutines-from-sync-code-2/24093/2 "2023-02-22T16:26:14Z")

</div>

I am unenthusiastic about providing this functionality in the stdlib. This is really not something that a well-behaved async application should do, and having the API would legitimize an idiom that is likely to come back and stab you in the back when you least need it. You would be better off refactoring your application so you don’t need this ugly hack. (Of course, I understand that realistically that’s not always possible, but if your specific app’s transition to an async world requires this hack, well, it’s only 7 lines of code.)

---

_[View the full topic](https://discuss.python.org/t/calling-coroutines-from-sync-code-2/24093)._
