Commit 6890c57a authored by Jason Fried's avatar Jason Fried Committed by Facebook Github Bot

improve optionals and futures.

Summary:
Add and assign to options bindings.
Add a isReady to future bindings

Reviewed By: yfeldblum

Differential Revision: D13667465

fbshipit-source-id: 8522ef59d7d262cc13dc9f9940c37b7a0b65870c
parent c01f0afd
...@@ -15,6 +15,7 @@ cdef extern from "folly/futures/Future.h" namespace "folly" nogil: ...@@ -15,6 +15,7 @@ cdef extern from "folly/futures/Future.h" namespace "folly" nogil:
cdef cppclass cFollyFuture "folly::Future"[T]: cdef cppclass cFollyFuture "folly::Future"[T]:
T get() T get()
cbool hasValue() cbool hasValue()
cbool isReady()
#TODO add via and then #TODO add via and then
cdef extern from "folly/Unit.h" namespace "folly": cdef extern from "folly/Unit.h" namespace "folly":
......
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