# synchronized

> Locks that stop asynchronous Dart code from running concurrently

Source: https://talira.ai/catalog/synchronized-9t6fky3g
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / concurrency](https://talira.ai/categories/libraries/concurrency), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Alexandre Roux](https://talira.ai/orgs/alexandre-roux.md)

synchronized is a Dart and Flutter package with a lock for asynchronous code: a Lock runs one synchronized block at a time, like a critical section for code that uses await, so a read-modify-write, a login flow or a transaction on a store without transactions can't interleave with another. It has reentrant locks, a MultiLock that holds several at once, an extension that locks on any object, and a GlobalLock that excludes other isolates and processes on the Dart VM, or other tabs of the same origin in the browser. It runs on the Dart VM, Flutter on mobile, desktop and web, the browser and Node.

## Links

- GitHub: https://github.com/tekartik/synchronized.dart
- Docs: https://pub.dev/documentation/synchronized/latest/

## Problems it solves

- stop two async calls in my Flutter app from running the same code at once
- serialise a read-modify-write that awaits in Dart
- keep two browser tabs or processes from doing the same work at the same time in Dart

## Features

- Lock that runs one async block at a time
- Reentrant locks and MultiLock for several locks at once
- Extension to lock on any object without a Lock field
- GlobalLock that excludes other isolates, processes or browser tabs
- Optional timeout on waiting for a lock

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.69, adoption 0.47, momentum 0.13, community 0.34, backing 0.30, extensibility 0.00.

- last commit 19 days ago
- 14 commits in the last 90 days
- 217 GitHub stars
- 6 contributors
- accepts sponsorship (Github)
- backed by Alexandre Roux

## Sources

[^1]: https://github.com/tekartik/synchronized.dart/blob/master/LICENSE (checked 28 Nov 2026)
