Skip to content

Commit

Permalink
Mark PostEventWait deprecated.
Browse files Browse the repository at this point in the history
At some point in the future this is going to be replaced with
a simpler channel design, and the current blocking approach
is both non-idiomatic, and fragile.  Don't use it.
  • Loading branch information
gdamore committed Jan 25, 2021
1 parent 13bc6c2 commit 19e1709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions screen.go
Expand Up @@ -88,6 +88,9 @@ type Screen interface {
// is dropped, and ErrEventQFull is returned.
PostEvent(ev Event) error

// Deprecated: PostEventWait is unsafe, and will be removed
// in the future.
//
// PostEventWait is like PostEvent, but if the queue is full, it
// blocks until there is space in the queue, making delivery
// reliable. However, it is VERY important that this function
Expand Down

0 comments on commit 19e1709

Please sign in to comment.