Skip to content

Commit

Permalink
add notice for X11 in SetExtLinux#wait_until docs
Browse files Browse the repository at this point in the history
auguwu authored and complexspaces committed Apr 12, 2024

Verified

This commit was signed with the committer’s verified signature.
chenrui333 Rui Chen
1 parent bc9fd24 commit eabb191
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/linux/mod.rs
Original file line number Diff line number Diff line change
@@ -244,6 +244,9 @@ pub trait SetExtLinux: private::Sealed {
/// This is useful for short-lived programs so that it doesn't block until new contents on the clipboard
/// were added and will exit as so.
///
/// For X11, this will wait until it either had new contents available in the clipboard or if the
/// `deadline` was exceeded. This isn't available for Wayland and will not do anything.
///
/// Note: this will call [`wait()`][SetExtLinux::wait] if it wasn't previously set.
fn wait_until(self, deadline: Instant) -> Self;
}

0 comments on commit eabb191

Please sign in to comment.