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.
Paths
| Differential D10613 Authored by kamil on Jan 11 2024, 10:04 AM.
Details 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
Diff Detail
Event Timelinekamil held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptJan 11 2024, 10:04 AM2024-01-11 10:04:52 (UTC-8) kamil edited the summary of this revision. (Show Details)Jan 11 2024, 10:05 AM2024-01-11 10:05:39 (UTC-8) kamil retitled this revision from [NativeRustModule] support `std::promise` to [NativeRustLibrary] support `std::promise`. Harbormaster completed remote builds in B25715: Diff 35556.Jan 11 2024, 10:28 AM2024-01-11 10:28:00 (UTC-8) Comment Actions you tested that both promise types work?
This revision now requires changes to proceed.Jan 12 2024, 11:58 AM2024-01-12 11:58:05 (UTC-8)
Comment Actions
yes, in D10631 where we use both, C++ for prekey rotation and JSI to log in to Identity (D10327)
Harbormaster completed remote builds in B25765: Diff 35617.Jan 15 2024, 6:51 AM2024-01-15 06:51:56 (UTC-8) This revision is now accepted and ready to land.Jan 15 2024, 12:08 PM2024-01-15 12:08:05 (UTC-8) Closed by commit rCOMMc98e25d3f6a7: [NativeRustLibrary] support `std::promise` (authored by kamil). · Explain WhyJan 16 2024, 4:04 AM2024-01-16 04:04:47 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 35658 native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
native/cpp/CommonCpp/NativeModules/CommRustModule.cpp
native/cpp/CommonCpp/NativeModules/InternalModules/RustPromiseManager.h
native/cpp/CommonCpp/NativeModules/InternalModules/RustPromiseManager.cpp
|