Table of Contents

Property Timeout

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

Timeout

Amount of time to wait before automatically unsubscribing.

public TimeSpan? Timeout { get; init; }

Property Value

TimeSpan?

Remarks

If not set, all published messages will be received until explicitly unsubscribed or disposed. Use MaxValue or InfiniteTimeSpan to explicitly disable the timeout. Other values must be between zero and ~49.7 days (the maximum supported by Timer); out-of-range values throw ArgumentOutOfRangeException when the subscription starts.