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

Hmm, I was not fully understanding this issue back in the meeting, as my focus was on a different issue. To reiterate what @smaug---- with some code, can this be:

```js
navigator.clipboard.write(new ClipboardItem({
  'text/html': 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 }),
}));
```

I think this can coexist with callback, though.

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

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

Received on Friday, 15 December 2023 21:56:32 UTC