Warning!
The version you're viewing is not the latest.
Go to the latest version
Function fail
Synopsis
#include <src/entt/process/process.hpp>
void fail() noexcept
Description
Terminates a process with errors if it's still alive.
The function is idempotent and it does nothing if the process isn't alive.
Source
Lines 135-139 in src/entt/process/process.hpp.
void fail() ENTT_NOEXCEPT {
if(alive()) {
current = state::FAILED;
}
}