Elsewhere in these comments there is also a link to an explainer for the macOS equivalent.
Here's also an explainer for X11: https://www.uninformativ.de/blog/postings/2017-04-02/0/POSTI...
It's interesting to look at these clipboard APIs together to see what may have led to the Wayland design, which is probably the most recently designed clipboard implementation.
I think the Wayland API is more elegant but also requires a clipboard manager in cases where you wouldn't expect to need tone (to copy less than a kilobyte of data before closing the program, for example).