EventLoopFuture

extension EventLoopFuture where Value == RESPValue
  • Attempts to convert the RESPValue to the desired RESPValueConvertible type. If the RESPValueConvertible.init(_:) returns nil, then the EventLoopFuture will fail.

    Declaration

    Swift

    @inlinable
    public func convertFromRESPValue<T>(
        to type: T.Type = T.self,
        file: StaticString = #function,
        function: StaticString = #function,
        line: UInt = #line
    )
        -> EventLoopFuture<T> where T: RESPValueConvertible

    Parameters

    to

    The desired type to convert to.

    Return Value

    An EventLoopFuture that resolves a value of the desired type.