Closed luissquall closed 8 years ago
before going any further, your code isnt correct in its usage. you should always call the callback and only once, the doc mention:
Skipping records is easily achieved by (..) passing null to the callback handler in asynchonous mode. Generating multiple records is only supported in asynchonous mode by providing n-arguments after the error argument instead of simply one.
Thank you very much, problem solved.
Calling transform callback multiple times doesn't emit second transform
finish
event. For instance:The output looks like this:
However, if we remove the
for
which breaks the 1-1 relationship betweentf
andcallback
,t2
finish
event is emitted.outputs:
Is it possible to make
t2
finish event to be emitted? In the real examplet1
lives inside a module.