Commit b45acf1e authored by Nathan Graule's avatar Nathan Graule 💻
Browse files

Resolve function now accepts value to be optional

parent 1c680e17
Pipeline #27338073 failed with stages
in 1 minute and 31 seconds
...@@ -85,7 +85,7 @@ class Call: ...@@ -85,7 +85,7 @@ class Call:
self.t.join() self.t.join()
@classmethod @classmethod
def resolve(cls, value): def resolve(cls, value=None):
# type: (Optional[T]) -> Call # type: (Optional[T]) -> Call
"""Create a Call that immediately resolves with the value """Create a Call that immediately resolves with the value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment