DrainBackgroundTasks -> DrainTasks
This commit is contained in:
parent
5d882c6b91
commit
9aaedc394e
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ int NodeMain(int argc, char* argv[]) {
|
||||||
bool more;
|
bool more;
|
||||||
do {
|
do {
|
||||||
more = uv_run(env->event_loop(), UV_RUN_ONCE);
|
more = uv_run(env->event_loop(), UV_RUN_ONCE);
|
||||||
gin_env.platform()->DrainBackgroundTasks(env->isolate());
|
gin_env.platform()->DrainTasks(env->isolate());
|
||||||
if (more == false) {
|
if (more == false) {
|
||||||
node::EmitBeforeExit(env);
|
node::EmitBeforeExit(env);
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ int NodeMain(int argc, char* argv[]) {
|
||||||
|
|
||||||
exit_code = node::EmitExit(env);
|
exit_code = node::EmitExit(env);
|
||||||
node::RunAtExit(env);
|
node::RunAtExit(env);
|
||||||
gin_env.platform()->DrainBackgroundTasks(env->isolate());
|
gin_env.platform()->DrainTasks(env->isolate());
|
||||||
gin_env.platform()->CancelPendingDelayedTasks(env->isolate());
|
gin_env.platform()->CancelPendingDelayedTasks(env->isolate());
|
||||||
|
|
||||||
node::FreeEnvironment(env);
|
node::FreeEnvironment(env);
|
||||||
|
|
Loading…
Add table
Reference in a new issue