पाना
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
typed inbound चैनल stream view
Syntax:
Category#
endpoint
Related#
Examples#
radix/corpus/ad/sermo-tuus.fab (canonical · method)#
typed inbound चैनल stream view
# =============================================================================
# पाना — typed inbound चैनल stream view.
# =============================================================================
#
# What this teaches:
# • Typed inbound stream — `s.tuus<T>()` creates a typed view over the
# incoming frames of a चैनल connection
# • Cursor consumption — संकेतक() yields frames that can be iterated with
# `दोहराओ सेवन`
#
# Common mistakes:
# • confusing सेवा route syntax — accessing `पाना<T>` stream after `fini()` has been called leaves no usable data
#
# See also: सेवा, चैनल, फ़्रेम, संकेतक
# =============================================================================
# sermo.tuus<T>() — typed inbound frame stream
main {
const चैनल s ← call 'runtime:echo' ("salve")
for from s.tuus<string>().cursor() const frame {
assert frame.data ≡ "salve"
}
}Expected output: