diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-30 21:19:29 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:48:18 -0700 |
| commit | 1fa83f73577d926664518d849bc26e46087611b4 (patch) | |
| tree | b5001bde1777cf56f7363a4db47bdee091b27815 /src/lib.rs | |
| parent | Generate `Default` for CurrentUser and use it in `Cache::default` (diff) | |
| download | serenity-1fa83f73577d926664518d849bc26e46087611b4.tar.xz serenity-1fa83f73577d926664518d849bc26e46087611b4.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")] |