|
IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
|
#include <ice/task_expected.hxx>
Public Types | |
| using | ValueType = Result |
| using | PromiseType = ice::TaskExpectedPromise<Result, ErrorType> |
| using | CoroutineType = ice::coroutine_handle<PromiseType> |
Public Member Functions | |
| TaskExpected (CoroutineType coro=nullptr) noexcept | |
| ~TaskExpected () noexcept | |
| TaskExpected (TaskExpected const &) noexcept=delete | |
| auto | operator= (TaskExpected const &) noexcept=delete |
| TaskExpected (TaskExpected &&) noexcept | |
| auto | operator= (TaskExpected &&other) noexcept -> TaskExpected & |
| auto | valid () const noexcept |
| auto | result () &noexcept -> Result & |
| auto | result () &&noexcept -> Result && |
| auto | error () const noexcept -> ErrorType |
| auto | operator co_await () &noexcept |
| Awaits the task and returns the result if successful. On failure, resumes the top most coroutine that handles the error explicitly. | |
| auto | operator co_await () &&noexcept |
| Awaits the task and returns the result if successful. On failure, resumes the top most coroutine that handles the error explicitly. | |
| using ice::TaskExpected< Result, ErrorType >::CoroutineType = ice::coroutine_handle<PromiseType> |
| using ice::TaskExpected< Result, ErrorType >::PromiseType = ice::TaskExpectedPromise<Result, ErrorType> |
| using ice::TaskExpected< Result, ErrorType >::ValueType = Result |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinedeletenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Awaits the task and returns the result if successful. On failure, resumes the top most coroutine that handles the error explicitly.
|
inlinenoexcept |
Awaits the task and returns the result if successful. On failure, resumes the top most coroutine that handles the error explicitly.
|
inlinenoexcept |
|
inlinedeletenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |