INNER CODE UNIT · JavaScript

listTabsFor

sebastiancarlos/beachpatrol · beachmsg.js:141

  const listTabsFor = async (name) => {
    const lines = [];
    try {
      for await (const line of sendCommand(instanceEndpoint(name), ["list-tabs"], {
        timeout: 5000,
      })) {
        lines.push(line);
      }
      return { kind: "ok", lines };
    } catch (error) {
      return error.kind === "dead"
        ? { kind: "dead" }
        : { kind: "error", message: error.message };
    }
  };

  const instances = await Promise.all(
    instanceNames.map(async (name) => ({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…