cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.83k stars 2.05k forks source link

Done is not a function #17819

Closed longchuan closed 2 weeks ago

longchuan commented 2 weeks ago

Cocos Creator version

3.8.4

System information

windows 11

Issue description

image When I used the pipeline.sync(task); image image sync and async had different flow.

Relevant error log output

No response

Steps to reproduce

Use the pipeline.sync(task); sync and async had different flow.

Minimal reproduction project

No response

longchuan commented 2 weeks ago

a bad keyword with "as"

longchuan commented 2 weeks ago

for the flow's secure,I should use the sync.

longchuan commented 2 weeks ago

image the transformPipeline was a empty pipeline,and how it works?

longchuan commented 2 weeks ago

a surprised problem,cocos maybe use the catch to achieve the async. if the err===e,the result would be true.

longchuan commented 2 weeks ago

image the pipeline has two item,So it is two catch.let me test the catch to judge it right or wrong.

longchuan commented 2 weeks ago

Wrong, transformPipeline is a const and added item by asset-manager.

longchuan commented 2 weeks ago

It is confused.where is the async?

longchuan commented 2 weeks ago

have not other idea with async

longchuan commented 2 weeks ago

a pipline's items would be invoked once,and some async manager invoked tasks again.

longchuan commented 2 weeks ago

image the only async...

longchuan commented 2 weeks ago

chaotic,complex,time-consuming