Skip to content

Commit 0b8034e

Browse files
authored
docs: Task Examples In Docs Fixed (#1315)
1 parent 37e1045 commit 0b8034e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/Guides/40 Tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ To start a task that has been created, you need to run the `Task.start()` method
111111

112112
@listen()
113113
async def on_startup(): # (1)!
114-
await print_every_ten.start()
114+
print_every_ten.start()
115115
```
116116
{ .annotate }
117117

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

128128
bot = Client(intents=Intents.DEFAULT)
129-
task = Task(IntervalTrigger(minutes=10))
129+
task = Task(print_every_ten, IntervalTrigger(minutes=10))
130130

131131
@listen()
132132
async def on_startup():
133-
await task.start()
133+
task.start()
134134
```

0 commit comments

Comments
 (0)