File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -225,27 +225,30 @@ defmodule Task do
225
225
226
226
It contains these fields:
227
227
228
+ * `:mfa` - a three-element tuple containing the module, function name,
229
+ and arity invoked to start the task in `async/1` and `async/3`
230
+
231
+ * `:owner` - the PID of the process that started the task
232
+
228
233
* `:pid` - the PID of the task process; `nil` if the task does
229
234
not use a task process
230
235
231
236
* `:ref` - the task monitor reference
232
237
233
- * `:owner` - the PID of the process that started the task
234
-
235
238
"""
236
- @ enforce_keys [ :pid , :ref , :owner , :mfa ]
239
+ @ enforce_keys [ :mfa , :owner , :pid , :ref ]
237
240
defstruct @ enforce_keys
238
241
239
242
@ typedoc """
240
243
The Task type.
241
244
242
- See `%Task{}` for information about each field of the structure.
245
+ See [ `%Task{}`](`__struct__/0`) for information about each field of the structure.
243
246
"""
244
247
@ type t :: % __MODULE__ {
245
- pid: pid ( ) | nil ,
246
- ref: reference ( ) ,
248
+ mfa: mfa ( ) ,
247
249
owner: pid ( ) ,
248
- mfa: mfa ( )
250
+ pid: pid ( ) | nil ,
251
+ ref: reference ( )
249
252
}
250
253
251
254
defguardp is_timeout ( timeout )
You can’t perform that action at this time.
0 commit comments