UNPKG

@squidcloud/client

Version:

A typescript implementation of the Squid client

13 lines (12 loc) 381 B
import { Observable } from 'rxjs'; /** * Interface defining the operations available for a queue manager. * Allows producing and consuming messages from a queue. * @category Queue */ export interface QueueManager<T> { /** Publish messages to the queue */ produce(messages: T[]): Promise<void>; /** Consume messages from the queue */ consume(): Observable<T>; }