Skip to main content

schedule

Function schedule 

Source
async fn schedule(services: &Services, __arg1: Schedule<'_>) -> Result<DelayId>
Expand description

Schedules an event and returns its delay_id.

A retried transaction returns the delay_id it first produced before the sender policy runs, so a policy change since cannot fail it. The user’s lock is held from the capacity check through the insert, and the room’s lock from after that check as an ordinary send holds it, so room auth sees the state the event would be sent against now.