Function deno_core::merge_op_metrics

source ·
pub fn merge_op_metrics(
    fn1: impl Fn(OpId, usize, &OpDecl) -> Option<OpMetricsFn> + 'static,
    fn2: impl Fn(OpId, usize, &OpDecl) -> Option<OpMetricsFn> + 'static
) -> OpMetricsFactoryFn
Expand description

Given two OpMetricsFactoryFn implementations, merges them so that op metric events are called on both.