@@ -162,6 +162,7 @@ defmodule Task.Supervisor do
162
162
163
163
* `:shutdown` - `:brutal_kill` if the tasks must be killed directly on shutdown
164
164
or an integer indicating the timeout value, defaults to 5000 milliseconds.
165
+ The tasks must trap exits for the timeout to have an effect.
165
166
166
167
"""
167
168
@ spec async ( Supervisor . supervisor ( ) , ( -> any ) , Keyword . t ( ) ) :: Task . t ( )
@@ -183,6 +184,7 @@ defmodule Task.Supervisor do
183
184
184
185
* `:shutdown` - `:brutal_kill` if the tasks must be killed directly on shutdown
185
186
or an integer indicating the timeout value, defaults to 5000 milliseconds.
187
+ The tasks must trap exits for the timeout to have an effect.
186
188
187
189
"""
188
190
@ spec async ( Supervisor . supervisor ( ) , module , atom , [ term ] , Keyword . t ( ) ) :: Task . t ( )
@@ -208,6 +210,7 @@ defmodule Task.Supervisor do
208
210
209
211
* `:shutdown` - `:brutal_kill` if the tasks must be killed directly on shutdown
210
212
or an integer indicating the timeout value, defaults to 5000 milliseconds.
213
+ The tasks must trap exits for the timeout to have an effect.
211
214
212
215
## Compatibility with OTP behaviours
213
216
@@ -337,6 +340,7 @@ defmodule Task.Supervisor do
337
340
338
341
* `:shutdown` - `:brutal_kill` if the tasks must be killed directly on shutdown
339
342
or an integer indicating the timeout value. Defaults to `5000` milliseconds.
343
+ The tasks must trap exits for the timeout to have an effect.
340
344
341
345
## Examples
342
346
@@ -455,6 +459,7 @@ defmodule Task.Supervisor do
455
459
456
460
* `:shutdown` - `:brutal_kill` if the task must be killed directly on shutdown
457
461
or an integer indicating the timeout value, defaults to 5000 milliseconds.
462
+ The task must trap exits for the timeout to have an effect.
458
463
459
464
"""
460
465
@ spec start_child ( Supervisor . supervisor ( ) , ( -> any ) , keyword ) ::
0 commit comments