@@ -82,6 +82,8 @@ def _notify_readers(self, subsriber: dds_c_t.entity) -> dds_c_t.returnv:
82
82
83
83
class DataReader (Entity , Generic [_T ]):
84
84
"""Subscribe to a topic and read/take the data published to it.
85
+
86
+ All returned samples are annotated with the :class:`sample.sample_info<cyclonedds.internal.SampleInfo>` attribute.
85
87
"""
86
88
87
89
def __init__ (
@@ -90,8 +92,7 @@ def __init__(
90
92
topic : Topic [_T ],
91
93
qos : Optional [Qos ] = None ,
92
94
listener : Optional [Listener ] = None ):
93
- """Initialize the DataReader
94
-
95
+ """
95
96
Parameters
96
97
----------
97
98
subscriber_or_participant: cyclonedds.sub.Subscriber, cyclonedds.domain.DomainParticipant
@@ -309,7 +310,7 @@ def take_one(self, condition=None, timeout: int = None) -> _T:
309
310
return sample
310
311
311
312
async def read_aiter (self , condition = None , timeout : int = None ) -> AsyncGenerator [_T , None ]:
312
- """Shortcut method to asycn iterate reading samples. Iteration will stop once the timeout you supply expires.
313
+ """Shortcut method to async iterate reading samples. Iteration will stop once the timeout you supply expires.
313
314
Every time a sample is received the timeout is reset.
314
315
315
316
Raises
@@ -335,7 +336,7 @@ async def read_aiter(self, condition=None, timeout: int = None) -> AsyncGenerato
335
336
break
336
337
337
338
async def take_aiter (self , condition = None , timeout : int = None ) -> AsyncGenerator [_T , None ]:
338
- """Shortcut method to asycn iterate taking samples. Iteration will stop once the timeout you supply expires.
339
+ """Shortcut method to async iterate taking samples. Iteration will stop once the timeout you supply expires.
339
340
Every time a sample is received the timeout is reset.
340
341
341
342
Raises
0 commit comments