propagate_int


Description:

[ Version ( since = "2.36" ) ]
public ssize_t propagate_int () throws Error

Gets the result of this as an integer (ssize_t).

If the task resulted in an error, or was cancelled, then this will instead return -1 and set throws.

Since this method transfers ownership of the return value (or error) to the caller, you may only call it once.

Parameters:

this

a Task.

Returns:

the task result, or -1 on error