Companion
object Companion
Functions
Link copied to clipboard
fun <T> failure(error: Throwable, errorUpdatedAt: Long = epoch(), subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): SubscriptionState<T>
fun <T> failure(error: Throwable, errorUpdatedAt: Long = epoch(), data: T, dataUpdatedAt: Long = epoch(), subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): SubscriptionState<T>
Creates a new SubscriptionState with the SubscriptionStatus.Failure status.
Link copied to clipboard
fun <T> initial(subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): SubscriptionState<T>
Creates a new SubscriptionState with the SubscriptionStatus.Pending status.
Link copied to clipboard
fun <T> success(data: T, dataUpdatedAt: Long = epoch(), subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): SubscriptionState<T>
Creates a new SubscriptionState with the SubscriptionStatus.Success status.
Link copied to clipboard
fun <T> test(reply: Reply<T> = Reply.None, replyUpdatedAt: Long = 0, error: Throwable? = null, errorUpdatedAt: Long = 0, status: SubscriptionStatus = SubscriptionStatus.Pending, subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): SubscriptionState<T>
Creates a new SubscriptionState for Testing.