pub fn taped_resolver<F, Fut>(
tape: Arc<dyn Tape>,
mode: TapeMode,
name: impl Into<String>,
fetch: F,
) -> impl Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>> + Send + Sync + 'staticExpand description
Wrap a resolver’s fetch so its calls are recorded on, or answered from,
tape.
name scopes the recording (use the field or slot name), so two
resolvers given the same arguments do not answer for each other. The
result has the shape Extract::field_resolve and
Conversation::resolve_slot take.