TaskOutcome
Hasil dari upaya menjalankan Tugas. Jika TaskState
ditutup, TaskOutcome
akan menunjukkan apakah proses berhasil diselesaikan.
Enum |
TASK_OUTCOME_UNSPECIFIED |
Hasil Tugas sebelum nilainya ditetapkan. |
SUCCEEDED |
Tugas berhasil diselesaikan. |
FAILED |
Tugas tidak dapat diselesaikan atau dibatalkan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-07-24 UTC.
[null,null,["Terakhir diperbarui pada 2024-07-24 UTC."],[[["`TaskOutcome` shows the result of a Task execution attempt, mainly focusing on success or failure when the Task is closed."],["The enum provides three states: `TASK_OUTCOME_UNSPECIFIED` for an initial unset state, `SUCCEEDED` for successful completion, and `FAILED` for either incompletion or cancellation of the task."]]],["`TaskOutcome` details the result of a Task execution once its state is closed. Possible outcomes include `TASK_OUTCOME_UNSPECIFIED`, representing the initial state before a result is set. `SUCCEEDED` indicates a successful completion, while `FAILED` signifies that the Task could not be completed or was cancelled. These values are crucial for understanding if a given Task was successfully finished or not.\n"]]