mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
remove unsed warning, update docs
This commit is contained in:
@@ -734,7 +734,7 @@ pub(crate) fn inc_and_check<T: PrimInt + AddAssign + std::fmt::Debug>(
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use tokio::task;
|
/// use deltachat::spawn_named_task; // or inside of core: crate::spawn_named_task
|
||||||
///
|
///
|
||||||
/// let handle = spawn_named_task!("my_task", async {
|
/// let handle = spawn_named_task!("my_task", async {
|
||||||
/// // Your async code here
|
/// // Your async code here
|
||||||
@@ -746,6 +746,7 @@ pub(crate) fn inc_and_check<T: PrimInt + AddAssign + std::fmt::Debug>(
|
|||||||
macro_rules! spawn_named_task {
|
macro_rules! spawn_named_task {
|
||||||
($name:expr, $future:expr) => {{
|
($name:expr, $future:expr) => {{
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub fn __spawn_named_task<Fut>(
|
pub fn __spawn_named_task<Fut>(
|
||||||
name: &str,
|
name: &str,
|
||||||
future: Fut,
|
future: Fut,
|
||||||
@@ -796,7 +797,7 @@ macro_rules! spawn_named_task {
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use tokio::task;
|
/// use deltachat::spawn_named_blocking_task; // or inside of core: crate::spawn_named_blocking_task
|
||||||
///
|
///
|
||||||
/// let handle = spawn_named_blocking_task!("my_task", async {
|
/// let handle = spawn_named_blocking_task!("my_task", async {
|
||||||
/// // Your async code here
|
/// // Your async code here
|
||||||
@@ -808,6 +809,7 @@ macro_rules! spawn_named_task {
|
|||||||
macro_rules! spawn_named_blocking_task {
|
macro_rules! spawn_named_blocking_task {
|
||||||
($name:expr, $future:expr) => {{
|
($name:expr, $future:expr) => {{
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub fn __spawn_named_blocking_task<Fut, ReturnType>(
|
pub fn __spawn_named_blocking_task<Fut, ReturnType>(
|
||||||
name: &str,
|
name: &str,
|
||||||
future: Fut,
|
future: Fut,
|
||||||
|
|||||||
Reference in New Issue
Block a user