Skip to content

BUG | useAsyncQueue | In the last task, reject does not trigger the onFinished event #5143

@yuyuko233

Description

@yuyuko233

Describe the bug

In the last task, reject does not trigger the onFinished event.

在最后一个任务调用 reject() 不会触发 onFinished 事件

Reproduction

https://playground.vueuse.org/#eNq1U01v00AQ/SujvcQRVpwQuERxREFFKgco0BvmYOxJusHeXe2HG2T5vzPrbWy3qqpeeki0M+955s1Xyy6UWjQO2YZtTaG5smDQOgVVLg5pxqzJ2C4TvFZSW2jBGbww/0Tx3aFD6GCvZQ2zDxSBkKSQGmcTtsb9wCEKQZnYO1FYLgWoVTSHNhNANOu0AIF3cE1cbjCKNBpZNTiHdBdI4IXd8BqlsxF9Ofp9gJ4crZbL5Tw4uxhW4d3Rf/cw81sf3lV2A8LVf1C/hg54401KMgp6f5b3hKT1C5oRE3jEwk6TJsmQdVZKgbP7dIEZzSwae28EaMhdSEEQN5+54OYWS0j9vKJ9XhkkToBbyElgg1eixJPP7yuimaYPNyH6pVYx9ZV+699x0CbFOfImmqe7oUljxkWTV7RFKVjtsNcWkzbKvU3CLtLmkWGxVlVukSyAbcmb/kFPtRtjbaBtp8V03TZRI3FSRc+c2I+oGnfn5SDeuWBPIaRXkAQJ22QijMV0KtSyPT8sjkYKuqe+4IwVsla8Qv1N+UHTOVHckCtjeVXJuy+9z7eAqg/+4haLv0/4j+bkfRm7Jl2oG8zYgNlcH9AG+PLnVzzRewBrWbqK2M+AP/wWOa8x0D46UZLsCa9Xe9XfNheHG3N5sijMuajpDD2b7v3TM6WPcteLd/13NHrW/QfxhoI7

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (28) x64 Intel(R) Core(TM) i7-14700K
    Memory: 33.43 GB / 63.75 GB
  Binaries:
    Node: 22.21.0 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - D:\Program Files\nodejs\yarn.CMD
    npm: 10.9.4 - D:\Program Files\nodejs\npm.CMD
    pnpm: 10.19.0 - C:\Users\PC\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (141.0.3537.85)
    Firefox Developer Edition: 145.0 - C:\Program Files\Firefox Developer Edition\firefox.exe
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @vueuse/components: ^14.0.0 => 14.0.0 
    @vueuse/core: ^14.0.0 => 14.0.0 
    @vueuse/electron: ^14.0.0 => 14.0.0 
    @vueuse/gesture: ^2.0.0 => 2.0.0 
    @vueuse/integrations: ^14.0.0 => 14.0.0 
    @vueuse/motion: ^3.0.3 => 3.0.3 
    @vueuse/router: ^4.11.2 => 4.11.2 
    @vueuse/rxjs: ^14.0.0 => 14.0.0 
    @vueuse/sound: ^2.1.3 => 2.1.3 
    vue: ^3.5.22 => 3.5.22

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions