# Concurrency Issues Between Sync and Async Methods in Ray Actors

**URL:** <https://discuss.ray.io/t/concurrency-issues-between-sync-and-async-methods-in-ray-actors/15010>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [June 20, 2024, 8:33am UTC](https://discuss.ray.io/t/concurrency-issues-between-sync-and-async-methods-in-ray-actors/15010 "2024-06-20T08:33:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gregbowers](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/gregbowers/32/6221_2.png) [@gregbowers](https://discuss.ray.io/u/gregbowers)\
**Post date:** [June 20, 2024, 8:33am UTC](https://discuss.ray.io/t/concurrency-issues-between-sync-and-async-methods-in-ray-actors/15010/1 "2024-06-20T08:33:26Z")

</div>

Hello

I am working on a Ray actor that performs a busy loop in a synchronous method (sync\_method). To introduce concurrency, I have added async methods (async\_method) to the actor and am calling them from coroutines. I am not sure if the busy loop in sync\_method is blocking the execution of async methods concurrently.

I want to know ; how does Ray manage concurrency between sync and async methods within the same actor? Should I expect async methods going to run concurrently with a busy loop in a sync method, or do I need to implement specific patterns to achieve this? 🤔

What are the best practices for ensuring that both sync and async methods can execute concurrently within a Ray actor? I have checked [Newest 'ray-project-' Questions - Stack Overflow](https://stackoverflow.com/questions/tagged/ray-project-) [powerapps](https://www.igmguru.com/microsoft-training/powerapps-training/) guide but still need help .

I appreciate any advice on optimizing concurrency in this scenario.

Thanks!

Thank you 🙂  
gregbowers

---

_[View the full topic](https://discuss.ray.io/t/concurrency-issues-between-sync-and-async-methods-in-ray-actors/15010)._
