Skip to main content
Module

x/capi/mod.ts>$.EncodeBuffer#waitFor

[WIP] A framework for crafting interactions with Substrate chains
Latest
method $.EncodeBuffer.prototype.waitFor
Re-export
import { $ } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { EncodeBuffer } = $;

Immediately invokes the callback, and holds the buffer open until the returned promise resolves.

Parameters

fn: () => Promise<void>