Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/Guides/40 Tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ To start a task that has been created, you need to run the `Task.start()` method

@listen()
async def on_startup(): # (1)!
await print_every_ten.start()
print_every_ten.start()
```
{ .annotate }

Expand All @@ -126,9 +126,9 @@ To start a task that has been created, you need to run the `Task.start()` method
print("It's been 10 minutes!")

bot = Client(intents=Intents.DEFAULT)
task = Task(IntervalTrigger(minutes=10))
task = Task(print_every_ten, IntervalTrigger(minutes=10))

@listen()
async def on_startup():
await task.start()
task.start()
```