Macro config

Source
macro_rules! config {
    ($func:ident) => { ... };
}
Expand description

Connects to Pinnacle before calling the provided async function, then blocks until Pinnacle exits.

This macro is called by main. It is exposed for use in case you need to change the generated main function.

ยงExamples

async fn config() {}

#[pinnacle_api::tokio::main(worker_threads = 8)]
async fn main() {
    pinnacle_api::config!(config);
}