MCPcopy Create free account
hub / github.com/Botloader/botloader / op_bl_del_task

Function op_bl_del_task

components/runtime/src/extensions/tasks.rs:77–86  ·  view source on GitHub ↗
(
    state: Rc<RefCell<OpState>>,
    #[number] task_id: u64,
)

Source from the content-addressed store, hash-verified

75
76#[op2(async)]
77async fn op_bl_del_task(
78 state: Rc<RefCell<OpState>>,
79 #[number] task_id: u64,
80) -> Result<bool, AnyError> {
81 let rt_ctx = get_rt_ctx(&state);
82 RateLimiters::task_ops(&state).await;
83
84 let del = rt_ctx.db.del_task_by_id(rt_ctx.guild_id, task_id).await?;
85 Ok(del > 0)
86}
87
88#[op2(async)]
89async fn op_bl_del_task_by_key(

Callers 1

delTaskFunction · 0.85

Calls 2

get_rt_ctxFunction · 0.85
del_task_by_idMethod · 0.80

Tested by

no test coverage detected