Handle

public class Handle

Representation of a Venice resource.

  • Cancels the handle.

    Warning

    cancel guarantees that all associated resources are deallocated. However, it does not guarantee that the handle’s work will have been fully finished. For example, outbound network data may not be flushed.

    Throws

    The following errors might be thrown:

    VeniceError.canceledChannel

    Thrown when the operation is performed on a canceled channel.

    VeniceError.unexpectedError

    Thrown when an unexpected error occurs. This should never happen in the regular flow of an application.

    Declaration

    Swift

    public func cancel() throws