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
43
44
45
46
47
use ;
use Future;
/// An abstraction over the asynchronous runtime the repo is running on
///
/// When a [`Repo`](crate::Repo) starts up it spawns a number of tasks which run
/// until the repo is shutdown. These tasks do things like handle IO using
/// [`Storage`](crate::Storage) or pass messages between different document
/// threads and the central control loop of the repo. [`RuntimeHandle`]
/// represents this ability to spawn tasks.
/// An abstraction over the asynchronous runtime the repo is running on
///
/// When a [`Repo`](crate::Repo) starts up it spawns a number of tasks which run
/// until the repo is shutdown. These tasks do things like handle IO using
/// [`Storage`](crate::Storage) or pass messages between different document
/// threads and the central control loop of the repo. [`LocalRuntimeHandle`]
/// represents this ability to spawn tasks.
///
/// The difference between this trait and the [`RuntimeHandle`] trait is that
/// the `LocalRuntimeHandle` does not have a `Send` or 'static bound, enabling
/// it to be used with runtimes that don't require this. See the [module level
/// documentation on runtimes](../index.html#runtimes) for more details.