We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc0c2b commit 1f033baCopy full SHA for 1f033ba
1 file changed
effect/ref.py
@@ -28,8 +28,13 @@ def modify(self, transformer):
28
"""
29
Return an Effect that updates the value with ``fn(old_value)``.
30
31
+ :param transformer: Function that takes old value and returns the new
32
+ value.
33
+
34
This is not guaranteed to be linearizable if multiple threads are
- modifying the reference at the same time.
35
+ modifying the reference at the same time. It is safe to assume
36
+ consistent modification as long as you're not using multiple threads,
37
+ though.
38
39
return Effect(ModifyReference(ref=self, transformer=transformer))
40
0 commit comments