ok_with


Description:

[ Version ( since = "0.3.0-beta" ) ]
public Result<G> ok_with (G expected, owned EqualDataFunc? equal = null)

Ensures this result holds the expected value.

If this holds an error or a not expected value, fails with GLib.error. Otherwise, returns this.

Future implementation: Waits until the future is completed if not yet completed.

Parameters:

expected

an expected value

equal

an equal function. if not specified, Gee.Functions.get_equal_func_for is used to get a proper function

Returns:

this result if it holds the expected value




2022 vala-language.org