Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
§
Ìß]jÀ/ ã óª — d dl mZ d dlZd dlmZmZmZmZmZm Z d dl
mZ d dlm
Z
d dlmZ erd dlmZ dZd Z G d
„ d¦ « Z G d„ d
¦ « ZdS )é )ÚannotationsN)Ú
TYPE_CHECKINGÚ
AsyncIteratorÚ AwaitableÚCallableÚListÚOptional)Úuuid4)Úerrors)ÚMsg)ÚJetStreamContexti i c óô — e Zd ZdZddddddeefd'd„Zed(d„¦ « Zed(d„¦ « Z ed)d„¦ « Z
ed*d„¦ « Zed*d„¦ « Zed*d„¦ « Z
d+d,d„Zd „ Zd!„ Zd-d"„Zd.d/d$„Zd-d%„Zd-d&„ZdS )0ÚSubscriptiona÷
A Subscription represents interest in a particular subject.
A Subscription should not be constructed directly, rather
`connection.subscribe()` should be used to get a subscription.
::
nc = await nats.connect()
# Async Subscription
async def cb(msg):
print('Received', msg)
await nc.subscribe('foo', cb=cb)
# Sync Subscription
sub = nc.subscribe('foo')
msg = await sub.next_msg()
print('Received', msg)
r Ú NÚidÚintÚsubjectÚstrÚqueueÚcbú*Optional[Callable[[Msg], Awaitable[None]]]ÚfutureúOptional[asyncio.Future]Úmax_msgsÚpending_msgs_limitÚpending_bytes_limitÚreturnÚNonec
ó. — || _ || _ || _ || _ || _ d| _ || _ || _ d| _ || _ | | _
t j |¬¦ « | _
|€i | _ nd | _ d| _ d | _ d | _ d | _ d S )Nr F)Úmaxsize)Ú_connÚ_idÚ_subjectÚ_queueÚ _max_msgsÚ _receivedÚ_cbÚ_futureÚ_closedÚ_pending_msgs_limitÚ_pending_bytes_limitÚasyncioÚQueueÚ_pending_queueÚ_pending_next_msgs_callsÚ
_pending_sizeÚ_wait_for_msgs_taskÚ_message_iteratorÚ_jsi)
ÚselfÚconnr r r r r r r r s
úL/opt/imunify360/venv/lib64/python3.11/site-packages/nats/aio/subscription.pyÚ__init__zSubscription.__init__? sª € 𠈌
؈ŒØˆŒ
؈ŒØ!ˆŒØˆŒØˆŒØˆŒØˆŒð $6ˆÔ Ø$7ˆÔ!Ý29´-ÐHZÐ2[Ñ2[Ô2[ˆÔð ˆ:Ø,.ˆDÔ)Ð)à,0ˆDÔ)ØˆÔØ#'ˆÔ Ø!%ˆÔð 6:ˆŒ ˆ ˆ ó c ó — | j S )z<
Returns the subject of the `Subscription`.
)r# ©r4 s r6 r zSubscription.subjectf s € ð
Œ}Ðr8 c ó — | j S )zX
Returns the queue name of the `Subscription` if part of a queue group.
)r$ r: s r6 r zSubscription.queuem s € ð
Œ{Ðr8 úAsyncIterator[Msg]c óF — | j st j d¦ « ‚| j S )a¨
Retrieves an async iterator for the messages from the subscription.
This is only available if a callback isn't provided when creating a
subscription.
::
nc = await nats.connect()
sub = await nc.subscribe('foo')
# Use `async for` which implicitly awaits messages
async for msg in sub.messages:
print('Received', msg)
zCcannot iterate over messages with a non iteration subscription type)r2 r ÚErrorr: s r6 ÚmessageszSubscription.messagest s* € ð Ô%ð fÝ”,ÐdÑeÔeÐeàÔ%Ð%r8 c ó4 — | j ¦ « S )zw
Number of delivered messages by the NATS Server that are being buffered
in the pending queue.
)r. Úqsizer: s r6 Úpending_msgszSubscription.pending_msgs‰ s € ð Ô"×(Ò(Ñ*Ô*Ð*r8 c ó — | j S )zk
Size of data sent by the NATS Server that is being buffered
in the pending queue.
)r0 r: s r6 Ú
pending_byteszSubscription.pending_bytes‘ s
€ ð Ô!Ð!r8 c ó — | j S )zK
Number of delivered messages to this subscription so far.
)r&