Search Results for

    Show / Hide Table of Contents

    Class StreamTestKit.FailedSubscription<T>

    Inheritance
    object
    StreamTestKit.FailedSubscription<T>
    Implements
    ISubscription
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Streams.TestKit
    Assembly: Akka.Streams.TestKit.dll
    Syntax
    public sealed class StreamTestKit.FailedSubscription<T> : ISubscription
    Type Parameters
    Name Description
    T

    Constructors

    | Edit this page View Source

    FailedSubscription(ISubscriber<T>, Exception)

    Declaration
    public FailedSubscription(ISubscriber<T> subscriber, Exception cause)
    Parameters
    Type Name Description
    ISubscriber<T> subscriber
    Exception cause

    Properties

    | Edit this page View Source

    Cause

    Declaration
    public Exception Cause { get; }
    Property Value
    Type Description
    Exception
    | Edit this page View Source

    Subscriber

    Declaration
    public ISubscriber<T> Subscriber { get; }
    Property Value
    Type Description
    ISubscriber<T>

    Methods

    | Edit this page View Source

    Cancel()

    Request the Reactive.Streams.IPublisher<T> to stop sending data and clean up resources.

    Data may still be sent to meet previously signalled demand after calling cancel.

    Declaration
    public void Cancel()
    | Edit this page View Source

    Request(long)

    No events will be sent by a Reactive.Streams.IPublisher<T> until demand is signaled via this method.

    It can be called however often and whenever needed—but the outstanding cumulative demand must never exceed MaxValue. An outstanding cumulative demand of MaxValue may be treated by the Reactive.Streams.IPublisher<T> as "effectively unbounded".

    Whatever has been requested can be sent by the Reactive.Streams.IPublisher<T> so only signal demand for what can be safely handled.

    A Reactive.Streams.IPublisher<T> can send less than is requested if the stream ends but then must emit either OnError(Exception) or Reactive.Streams.ISubscriber<T>.OnComplete().

    Declaration
    public void Request(long n)
    Parameters
    Type Name Description
    long n

    The strictly positive number of elements to requests to the upstream Reactive.Streams.IPublisher<T>

    Implements

    Reactive.Streams.ISubscription

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET