Right now at the end of a input data user has to manually call results function to obtain data.
It would be better if user could specify a hook function which would be called when handler terminates.
Probably it would require to extend handler trait with terminate or flush function which would be used
to clean the buffered data of handler (if handler buffers something) and to trigger the hook.
Right now at the end of a input data user has to manually call
results
function to obtain data.It would be better if user could specify a hook function which would be called when handler terminates.
Probably it would require to extend handler trait with
terminate
orflush
function which would be used to clean the buffered data of handler (if handler buffers something) and to trigger the hook.