naja_async_runtime 0.5.0-deprecated.1

A lightweight universal runtime for futures.
Documentation
/// The configuration for wich executor that should be used on this thread.
//
#[ derive( Debug, Copy, Clone, Hash, PartialEq, Eq ) ]
//
pub enum Config
{
	/// A threadpool executor from the futures crate.
	//
	#[ cfg( feature = "threadpool" ) ]
	//
	ThreadPool,

	/// A threadpool executor from the juliex crate.
	//
	#[ cfg( feature = "juliex" ) ]
	//
	Juliex,

	/// A threadpool executor from the async-std crate.
	//
	#[ cfg( feature = "async_std" ) ]
	//
	AsyncStd,

	/// An executor that runs futures on the current thread, capable of running `!`[`Send`] futures. Uses
	/// `futures::executor::LocalPool`.
	//
	#[ cfg( feature = "localpool" ) ]
	//
	LocalPool,

	/// An executor that runs futures on the current thread, capable of running `!`[`Send`] futures. Uses
	/// `tokio::runtime::current_thread::Runtime`.
	//
	#[ cfg( feature = "tokio_ct" ) ]
	//
	TokioCt,

	/// An executor that uses wasm-bindgen-futures under the hood. This is the only executor available on wasm
	/// at the moment. It is also only available on the wasm32-unknown-unknown target.
	//
	#[ cfg( feature = "bindgen" ) ]
	//
	Bindgen,

	/// Protect against adding other options being breaking changes.
	//
	__Nonexhaustive,
}