Can anyone make sense of this `Event` class? <http...
# kotlin-native
v
Can anyone make sense of this
Event
class? https://github.com/JetBrains/kotlin-native/blob/master/samples/weather_function/function/src/main/kotlin/org/example/weather_func/events.kt ? I'm trying to understand how the libcurl examples from the Kotlin native samples code work. It only seems to work for short HTTP responses; when libcurl starts chunking larger responses I lose most of it.
t
Not sure what you mean. I can make sense of the class by itself, it's an Event that can be subscribed to and unsubscribed from. Once the event fires all handlers (subscribers) are executed. Didn't understand the libcurl part.