diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-30 21:19:29 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 10:57:39 -0700 |
| commit | d7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14 (patch) | |
| tree | 842f96b915ffc6252ee3e191b68c0811eac35b9e /src/lib.rs | |
| parent | Generate `Default` for CurrentUser and use it in `Cache::default` (diff) | |
| download | serenity-d7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14.tar.xz serenity-d7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14.zip | |
Add a threadpool to the shard runner
A threadpool will help with giving event dispatches a threaded behaviour
while still allowing the library the ability to perform other actions,
such as receiving new events and heartbeating over the websocket client.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -129,6 +129,8 @@ extern crate opus; extern crate parking_lot; #[cfg(feature = "voice")] extern crate sodiumoxide; +#[cfg(feature = "threadpool")] +extern crate threadpool; #[cfg(feature = "client")] extern crate typemap; #[cfg(feature = "standard_framework")] |