Reputation: 509
According to asyncio synchronization primitives, there are synchronization methods.
Upvotes: 9
Views: 2264
Reputation: 39536
Synchronization primitives don't make your code synchronous, they make coroutines in your code synchronized.
Few examples:
asyncio.Event
)asyncio.Lock
)asyncio.Semaphore
)Take a look at a practical example of using asyncio.Semaphore
.
Upvotes: 12