The following tasks did not complete: first Did you forget to signal async completion?

Posted 王同学要努力

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The following tasks did not complete: first Did you forget to signal async completion?相关的知识,希望对你有一定的参考价值。

The following tasks did not complete: first Did you forget to signal async completion?

在使用gulp执行task的时候,使用匿名函数经常出现以下错误:

两种解决办法

方法一:这个是最简单的一种方法使用done来进行回调,gulp会自动将这个回调函数作为一个参数返回到任务中,在完成的时候一定要调用这个函数。如下:

方法二 :在异步请求机制中,是有一个Promise对象的,它包含了请求的过程中所有内容。如下:

以上是关于The following tasks did not complete: first Did you forget to signal async completion?的主要内容,如果未能解决你的问题,请参考以下文章

The following method did not exist, reactor.netty.resources.ConnectionProvider$Builder...

The following method did not exist, reactor.netty.resources.ConnectionProvider$Builder...

spring-boot:The following method did not exist: com.google.gson.GsonBuilder.setLenient()

gulp#4.0 Did you forget to signal async completion?

The “QtRunWork“ task returned false but did not log an error

The “QtRunWork“ task returned false but did not log an error