Skip to content
Snippets Groups Projects
Commit d88afa20 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix pydoc for DeferredValue

Change-Id: Iabbbb352a6d51347ffa2533bf45277ea18cd8557
parent ffcac3c8
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ class DeferredValue(tp.Generic[T]): ...@@ -17,7 +17,7 @@ class DeferredValue(tp.Generic[T]):
Usage: Usage:
>>> def thread1(value): >>> def thread1(value):
>>> print(value.val()) >>> print(value.value())
>>> val = DeferredValue() >>> val = DeferredValue()
>>> threading.Thread(target=thread1, args=(val, )).start() >>> threading.Thread(target=thread1, args=(val, )).start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment