Skip to content

Commit

Permalink
Add move ctor and makeEmpty method declarations to cFollyPromise
Browse files Browse the repository at this point in the history
Summary: Add cFollyPromise method declarations that are needed to create an empty `folly::Promise`

Reviewed By: Gownta

Differential Revision: D30519790

fbshipit-source-id: 46092d5a400b0fccc11a9e77271a18b4f6fa3f6d
  • Loading branch information
sethdelliott authored and facebook-github-bot committed Aug 26, 2021
1 parent 835de79 commit 2a20a79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions folly/python/__init__.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ cdef extern from "folly/Unit.h" namespace "folly":
cdef extern from "folly/futures/Promise.h" namespace "folly":
cdef cppclass cFollyPromise "folly::Promise"[T]:
cFollyPromise()
cFollyPromise(cFollyPromise&&)
void setValue[M](M& value)
void setException[E](E& value)
cFollyFuture[T] getFuture()

@staticmethod
cFollyPromise[T] makeEmpty()

cdef extern from "folly/Executor.h" namespace "folly":
cdef cppclass cFollyExecutor "folly::Executor":
pass

0 comments on commit 2a20a79

Please sign in to comment.