1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Autochat relay drain on the background tick.
//!
//! Collects pending autochat events from the channel and
//! dispatches them without holding a mutable borrow across
//! the entire receive loop.
//!
//! # Examples
//!
//! ```ignore
//! drain_autochat(&mut app);
//! ```
use crateApp;
/// Drain all pending autochat relay events.
///
/// Collects events into a `Vec` first to avoid holding two
/// mutable borrows on `app.state` simultaneously.
///
/// # Examples
///
/// ```ignore
/// drain_autochat(&mut app);
/// ```
pub