Mojo function
abort
abort[result: AnyType = None]() -> $0
Calls a target dependent trap instruction if available.
Parameters:
- βresult (
AnyType
): The result type.
Returns:
A null result type.
abort[result: AnyType = None, *, formattable: Formattable](message: formattable) -> $0
Calls a target dependent trap instruction if available.
Parameters:
- βresult (
AnyType
): The result type. - βformattable (
Formattable
): The Formattable type.
Args:
- βmessage (
formattable
): The message to include when aborting.
Returns:
A null result type.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?