Page MenuHomePhabricator

[comm-lib] Use futures_util::Ready to simplify code
ClosedPublic

Authored by bartek on Jun 13 2024, 12:53 AM.
Tags
None
Referenced Files
F3150017: D12411.id41261.diff
Mon, Nov 4, 6:04 PM
Unknown Object (File)
Sun, Nov 3, 10:37 PM
Unknown Object (File)
Sun, Nov 3, 10:13 PM
Unknown Object (File)
Sat, Nov 2, 2:55 AM
Unknown Object (File)
Fri, Nov 1, 1:38 PM
Unknown Object (File)
Thu, Oct 24, 2:12 AM
Unknown Object (File)
Wed, Oct 23, 10:33 AM
Unknown Object (File)
Fri, Oct 18, 5:33 AM
Subscribers

Details

Summary

Minor change that greatly simplifies future code in the stacks.

The std::future::Ready::into_inner() is unstable so we had to use async { } block and boxed future.
Used futures_util::Ready instead, which has this method stable.

Test Plan

Cargo build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable