laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! Concurrent operations and tasks that keep the application's context and tracing span.
//!
//! A handler that calls two services can wait for both at once, and a request that records
//! analytics doesn't need to wait for the write. A task started with Tokio directly loses the
//! application context, so `resolve`, `config`, and `once` panic inside it. The functions in this
//! module carry the context and tracing span into the task. The
//! [concurrency guide](https://github.com/laravel/rust-framework/blob/0.x/docs/tasks.md) walks
//! through each one.
//!
//! Use [`join!`] or [`try_join!`] for concurrent work within the calling task, [`select!`] to wait
//! for whichever of several operations finishes first, [`timeout`] to give an operation a time
//! limit, and [`sleep`] to pause. Use [`spawn`] for an independently scheduled task,
//! [`spawn_blocking`] for synchronous work, [`background`] for best-effort work that the
//! application's shutdown waits for, and [`Ticks`] for work that repeats while the server or a queue worker runs.
//!
//! ```no_run
//! use laravel::task;
//! # async fn profile(id: i64) -> laravel::Result<String> { Ok(String::new()) }
//! # async fn orders(id: i64) -> laravel::Result<Vec<i64>> { Ok(Vec::new()) }
//!
//! # async fn example(user_id: i64) -> laravel::Result<()> {
//! let (profile, orders) = task::try_join!(profile(user_id), orders(user_id))?;
//! # Ok(()) }
//! ```

pub(crate) use laravel_core::task::*;
#[doc(inline)]
pub use laravel_core::task::{
    Tick, Ticks, TimedOut, background, join, select, sleep, spawn, spawn_blocking, timeout, try_join,
};