Skip to content

Commit

Permalink
Add bindings for futures
Browse files Browse the repository at this point in the history
  • Loading branch information
olsaarik committed Oct 18, 2023
1 parent 2e02cc0 commit 25c77fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/mscclpp/core_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ void register_core(nb::module_& m) {
nb::arg("peer"), nb::arg("tag"))
.def("recv", (std::future<std::vector<char>>(Bootstrap::*)(int, int)) & Bootstrap::recv, nb::arg("peer"),
nb::arg("tag"));

def_future<void>(m, "void");
def_future<std::vector<char>>(m, "vector_char");

nb::class_<UniqueId>(m, "UniqueId");

Expand Down

0 comments on commit 25c77fe

Please sign in to comment.