MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / add_future

Method add_future

crates/csharp/src/interface.rs:1589–1602  ·  view source on GitHub ↗
(
        &mut self,
        func_name: &str,
        generic_type_name: &str,
        qualified_generic_type_name: &str,
        ty: Option<Type>,
    )

Source from the content-addressed store, hash-verified

1587 }
1588
1589 pub(crate) fn add_future(
1590 &mut self,
1591 func_name: &str,
1592 generic_type_name: &str,
1593 qualified_generic_type_name: &str,
1594 ty: Option<Type>,
1595 ) {
1596 self.futures.push(FutureInfo {
1597 name: func_name.to_string(),
1598 generic_type_name: generic_type_name.to_string(),
1599 qualified_generic_type_name: qualified_generic_type_name.to_string(),
1600 ty: ty,
1601 });
1602 }
1603
1604 pub(crate) fn add_stream(
1605 &mut self,

Callers 1

emitMethod · 0.80

Calls 2

pushMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected