HomePhabricator
Diffusion Comm c98e25d3f6a7

[NativeRustLibrary] support `std::promise`

Description

[NativeRustLibrary] support std::promise

Summary:
Context in ENG-6384

I tried to implement it using the template (std::promise<T>) but this complicates the code. I think we can assume the caller will handle it properly.

Test Plan:

  1. Test both rejecting/resolving
  2. I used one of existing methods and added sleep in Rust code to wait long enough and make sure it works

Reviewers: marcin, michal, varun

Reviewed By: varun

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10613

Details

Provenance
kamilAuthored on Jan 11 2024, 10:03 AM
Reviewer
varun
Differential Revision
D10613: [NativeRustLibrary] support `std::promise`
Parents
rCOMM96e3f6f2133d: [lib][web][native] Make possible to log out of one keyserver / delete account…
Branches
Unknown
Tags
Unknown