MCPcopy Create free account
hub / github.com/hashintel/hash / create_future

Function create_future

libs/error-stack/tests/common.rs:176–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176pub fn create_future() -> impl Future<Output = Result<(), Report<RootError>>> {
177 futures::future::err(create_report())
178}
179
180pub fn capture_ok<E>(closure: impl FnOnce() -> Result<(), Report<E>>) {
181 closure().expect("expected an OK value, found an error");

Callers 3

attach_futureFunction · 0.85
attach_futureFunction · 0.85
attach_futureFunction · 0.85

Calls 2

errFunction · 0.85
create_reportFunction · 0.70

Tested by

no test coverage detected