Auto Task API
Preparing search index...
modules/social/social/gff/context
GFFContext
Class GFFContext
同一实例的批次共用队列;排队时间不占用单项的超时。
Index
Constructors
constructor
Properties
disposed
options
owner
Page
Methods
dispose
do
emit
init
on
register
Cancellation
Constructors
constructor
new
GFFContext
(
options
:
GFFOptions
)
:
GFFContext
Parameters
options
:
GFFOptions
Returns
GFFContext
Properties
disposed
disposed
:
boolean
= false
Readonly
options
options
:
GFFOptions
Readonly
owner
Page
ownerPage
:
`
${
string
}
-
${
string
}
-
${
string
}
-
${
string
}
-
${
string
}
`
= ...
Methods
dispose
dispose
()
:
void
Returns
void
do
do
(
options
:
Record
<
string
,
string
[]
|
undefined
>
,
keys
:
readonly
string
[]
,
)
:
Promise
<
SocialTaskResult
>
Parameters
options
:
Record
<
string
,
string
[]
|
undefined
>
keys
:
readonly
string
[]
Returns
Promise
<
SocialTaskResult
>
emit
emit
(
event
:
SocialStatusEvent
)
:
void
外部监听器不参与任务 Promise,避免在状态回调中重入 do 导致死锁。
Parameters
event
:
SocialStatusEvent
Returns
void
init
init
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
on
on
(
_event
:
"status"
,
listener
:
StatusListener
)
:
()
=>
void
Parameters
_event
:
"status"
listener
:
StatusListener
Returns
()
=>
void
register
Cancellation
registerCancellation
(
cancel
:
()
=>
void
)
:
()
=>
void
Parameters
cancel
:
()
=>
void
Returns
()
=>
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
disposed
options
owner
Page
Methods
dispose
do
emit
init
on
register
Cancellation
Auto Task API
Loading...
同一实例的批次共用队列;排队时间不占用单项的超时。