Struct ntex_rt::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Builder struct for a ntex runtime.
Either use Builder::build
to create a system and start actors.
Alternatively, use Builder::run
to start the tokio runtime and
run a function in its context.
Implementations
Sets the option ‘stop_on_panic’ which controls whether the System is stopped when an uncaught panic is thrown from a worker thread.
Defaults to false.
Create new System.
This method panics if it can not create tokio runtime
Create new System that can run asynchronously. This method could be used to run ntex system in existing tokio runtime.
This method panics if it cannot start the system arbiter