You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says "boot" is unsafe because it can't guarantee that the return value is dropped. The typical solution to this in Rust is to have the function take a closure.
fnrun<R>(f:implFnOnce() -> R) -> R;
Unfortunately this doesn't work for async functions, since you can't stop the return future being leaked, but you could add an attribute like #[foundationdb::main] that can be combined with eg. #[tokio::main].
The text was updated successfully, but these errors were encountered:
The documentation says "boot" is unsafe because it can't guarantee that the return value is dropped. The typical solution to this in Rust is to have the function take a closure.
Unfortunately this doesn't work for async functions, since you can't stop the return future being leaked, but you could add an attribute like
#[foundationdb::main]
that can be combined with eg.#[tokio::main]
.The text was updated successfully, but these errors were encountered: