kernl API
    Preparing search index...

    Function createAskChannel

    • The kernel's ask channel over a host (D-067). A kind the host registers in asks is drawn by that renderer; otherwise by the prompt callback it replaces, while those last; otherwise it is refused. The kernel decides that the person is asked and what they are told; the host decides how it looks.

      Parameters

      • options: AskChannelOptions

        The host, and how to tell whether the window that asked is still open.

      Returns AskChannel

      The channel.

      const asks = createAskChannel({ host });
      const allowed = await asks.ask({ kind: 'upload.file', windowId, applet, facts: details, defaultText: describeUpload(details, applet) });