Replies: 1 comment 4 replies
-
Neither Airstream nor Scala have a concept of "side effects", so we can't really disallow that*. So yes, you can do dirty things inside operator callbacks, such as reading or updating a Var. It's not encouraged, but sometimes this can actually be useful to avoid more complex observable composition. Relatedly, Airstream has shared execution, e.g. the *BUT: you're not allowed to PS I'm moving these issues to discussions. Apparently this closes the original issue, but the point is to move, not to close the discussion. |
Beta Was this translation helpful? Give feedback.
-
Does Airstream support functions passed to transforming operators (for example, but not limited to,
EventStream.map
andSignal.map
) to have side effects?Beta Was this translation helpful? Give feedback.
All reactions