Skip to main content

init

Attribute Macro init 

Source
#[init]
Expand description

Configures and starts whichever native io backend is active (io_uring on Linux, IOCP on Windows, kqueue/mio elsewhere, or the tokio wrapper — see dtact_util::io::init_runtime) before the wrapped main/entry point runs. Takes the same five knobs as [fs_init]/[process_init] (workers, buffer_pool_size, chunk_size, pin_cpus, ring_depth), the “power user” counterpart to the plain dtact_util::io::init(workers) convenience function.