canic_core/ops/ic/
call.rs1#![allow(clippy::disallowed_methods)]
2
3use crate::{
4 cdk::{call::Call as IcCall, candid::Principal},
5 model::metrics::{
6 icc::IccMetrics,
7 system::{SystemMetricKind, SystemMetrics},
8 },
9};
10
11pub struct Call;
17
18impl Call {
19 #[must_use]
21 pub fn unbounded_wait(canister_id: Principal, method: &str) -> IcCall<'_, '_> {
22 SystemMetrics::increment(SystemMetricKind::CanisterCall);
23 IccMetrics::increment(canister_id, method);
24
25 IcCall::unbounded_wait(canister_id, method)
26 }
27}