Skip to content

Instance Method

nonempty(orError:)

Checks that the future’s value (if any) returns false for .isEmpty. If the check fails, the provided error is thrown.
func nonempty<E>(orError error: @autoclosure @escaping () -> E) -> EventLoopFuture<Value> where Value : Collection, E : Error

See Also

EventLoopFuture