summaryrefslogtreecommitdiff
path: root/smart_future.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-03-25 09:41:31 -0700
committerScott Gasch <[email protected]>2022-03-25 09:41:31 -0700
commit532df2c5b57c7517dfb3dddd8c1358fbadf8baf3 (patch)
tree9ce9a092ca3efb7282b0ac0449da4c9f30f79efc /smart_future.py
parentc6fca944b41f292b66efaba27ebf3fd0a37956b8 (diff)
Since this thing is on the innerwebs I suppose it should have a
copyright...
Diffstat (limited to 'smart_future.py')
-rw-r--r--smart_future.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/smart_future.py b/smart_future.py
index a1f6d97..7aac8eb 100644
--- a/smart_future.py
+++ b/smart_future.py
@@ -1,9 +1,13 @@
#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
"""A future that can be treated like the result that it contains and
will not block until it is used. At that point, if the underlying
value is not yet available, it will block until it becomes
-available."""
+available.
+
+"""
from __future__ import annotations
import concurrent