Skip to content

Commit b038fd0

Browse files
committed
Adds a note on implementation issue
1 parent b82511a commit b038fd0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugboard/component/io_controller.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ async def read(self) -> None:
130130
if len(read_tasks := self._set_read_tasks()) == 0:
131131
return
132132
# If there are outputs but not field inputs, wait for a short time to receive input events
133+
# FIXME : Need to differentiate between event producing components which are spontaneous
134+
# : event sources, i.e., they produce events from their `step` method, vs those
135+
# : which produce events only from event handlers in response to input events. A
136+
# : possible approach would be to detect if the `step` method is implemtented; this
137+
# : won't work however for components which are mixed field and event based.
133138
timeout = 1e-3 if self._has_outputs and not self._has_field_inputs else None
134139
try:
135140
try:

0 commit comments

Comments
 (0)