MCPcopy
hub / github.com/nats-io/nats.go / DeliverNew

Function DeliverNew

js.go:2566–2571  ·  view source on GitHub ↗

DeliverNew configures a Consumer to receive messages published after the subscription.

()

Source from the content-addressed store, hash-verified

2564// DeliverNew configures a Consumer to receive messages
2565// published after the subscription.
2566func DeliverNew() SubOpt {
2567 return subOptFn(func(opts *subOpts) error {
2568 opts.cfg.DeliverPolicy = DeliverNewPolicy
2569 return nil
2570 })
2571}
2572
2573// StartSequence configures a Consumer to receive
2574// messages from a start sequence.

Callers 2

WatchFilteredMethod · 0.85
WatchMethod · 0.85

Calls 1

subOptFnFuncType · 0.85

Tested by

no test coverage detected