Re: [w3c/editing] Delayed clipboard rendering API shape. (Issue #423)

To coexist with callbacks, if I understand the union issue correctly, that would have to be:

```
navigator.clipboard.write(new ClipboardItem({
  'text/html': Promise.resolve(new ReadableStream({
    pull(controller) {
      // This will only be called when the consumer reads it, so this is still about "have callback".
      controller.enqueue(bytes);
    }),
    type: "bytes",
  }, { highWaterMark: 0 })),
}));
```

No?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/423#issuecomment-1869883962
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/423/1869883962@github.com>

Received on Wednesday, 27 December 2023 02:18:14 UTC