@minecraft
    正在准备搜索索引...

    类 VoidTaskPromise

    Represents a cancellable Editor task that does not produce a result value.

    层级 (查看层级一览)

    索引

    属性

    cancelled: boolean

    Whether cancellation was accepted for the task.

    progress: number

    The current normalized task progress from 0 to 1. Task groups report the average progress of their constituent tasks. Successful tasks report 1 after settlement; failed or cancelled tasks retain their last observed progress.

    promise: Promise<void>

    The promise that resolves when the task completes. If cancellation is accepted, the promise rejects with a TaskCancelledError.

    方法