mirror of https://github.com/gdamore/tcell.git
Mark PostEventWait deprecated.
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.
This commit is contained in:
parent
13bc6c2778
commit
19e17097d8
|
@ -88,6 +88,9 @@ type Screen interface {
|
||||||
// is dropped, and ErrEventQFull is returned.
|
// is dropped, and ErrEventQFull is returned.
|
||||||
PostEvent(ev Event) error
|
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
|
// PostEventWait is like PostEvent, but if the queue is full, it
|
||||||
// blocks until there is space in the queue, making delivery
|
// blocks until there is space in the queue, making delivery
|
||||||
// reliable. However, it is VERY important that this function
|
// reliable. However, it is VERY important that this function
|
||||||
|
|
Loading…
Reference in New Issue