How to use SlackClientHttpConnector for SlackClient? #166
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey,
Saying that this crate provides only default implementation for Hyper/Tokio (so I don't support two runtimes myself in the crate itself), so if you're not going to implement HTTP backend/provider for your specific needs you just need to enable the one that crate provides just enabling the feature in your deps:
and using it like this: let client = SlackClient::new( SlackClientHyperConnector::new() ); As described in the docs: |
Beta Was this translation helpful? Give feedback.
Hey,
SlackClientHttpConnector
is designed to be able to implement different HTTP connectors and use different async runtimes. I know people were interested to have/implementasync-std
themselves for example.Saying that this crate provides only default implementation for Hyper/Tokio (so I don't support two runtimes myself in the crate itself), so if you're not going to implement HTTP backend/provider for your specific needs you just need to enable the one that crate provides just enabling the feature in your deps:
and using it like this:
As described in the docs:
h…