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

Method SubscribeSync

js.go:101–101  ·  view source on GitHub ↗

SubscribeSync creates a Subscription that can be used to process messages synchronously. See important note in Subscribe()

(subj string, opts ...SubOpt)

Source from the content-addressed store, hash-verified

99 // SubscribeSync creates a Subscription that can be used to process messages synchronously.
100 // See important note in Subscribe()
101 SubscribeSync(subj string, opts ...SubOpt) (*Subscription, error)
102
103 // ChanSubscribe creates channel based Subscription.
104 // See important note in Subscribe()

Callers 15

ExampleJetStreamFunction · 0.65
ExampleJSOptFunction · 0.65
ExampleSubOptFunction · 0.65
ExampleAckWaitFunction · 0.65
ExampleMsg_AckSyncFunction · 0.65
ExampleMsg_MetadataFunction · 0.65
ExampleAckOptFunction · 0.65
ExampleContextFunction · 0.65
TestClosedConnectionsFunction · 0.65

Calls

no outgoing calls

Tested by 15

ExampleJetStreamFunction · 0.52
ExampleJSOptFunction · 0.52
ExampleSubOptFunction · 0.52
ExampleAckWaitFunction · 0.52
ExampleMsg_AckSyncFunction · 0.52
ExampleMsg_MetadataFunction · 0.52
ExampleAckOptFunction · 0.52
ExampleContextFunction · 0.52
TestClosedConnectionsFunction · 0.52