Skip to content

Commit 42a0fa5

Browse files
Add note about process and thread synchronisers
1 parent 0a2d3ef commit 42a0fa5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

zarr/sync.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def __getitem__(self, item):
1313

1414

1515
class ThreadSynchronizer(Synchronizer):
16-
"""Provides synchronization using thread locks."""
16+
"""Provides synchronization using thread locks. This is disabled for
17+
platforms that don't support threading, such as Pyodide.
18+
"""
1719

1820
def __init__(self):
1921
self.mutex = Lock()
@@ -34,7 +36,8 @@ def __setstate__(self, *args):
3436
class ProcessSynchronizer(Synchronizer):
3537
"""Provides synchronization using file locks via the
3638
`fasteners <https://fasteners.readthedocs.io/en/latest/api/inter_process/>`_
37-
package.
39+
package. This is disabled for platforms that don't support threading, such
40+
as Pyodide.
3841
3942
Parameters
4043
----------

0 commit comments

Comments
 (0)