Module runtime

Module runtime 

Source
Expand description

Bronze’s runtime, which is the abstraction of the basic scheduling task, and wraps the synchronous and asynchronous runtime environment

You could implement your custom runtime

There are two abstraction:

  1. Runnable: basic trait to be implemented that are scheduled to run, it maybe a function, a closure or a struct, etc.
  2. BronzeRuntime: the trait for runtime environment。

Modules§

tokio_runtime
TokioRuntime, wrap tokio runtime

Structs§

AsyncFn
RunnableMetadata
RunnableMetadataBuilder
Builder for RunnableMetadata.
SafeWrappedRunner
SyncFn
ThreadRuntime
WrappedRunner

Enums§

RunnableMetadataBuilderError
Error type for RunnableMetadataBuilder
RuntimeJoinHandle

Traits§

BronzeRuntime
BuildFromRunnable
Runnable

Functions§

run_async

Type Aliases§

RunnerType
SafeMetadata