lawrence-laz / generic-pipeline

A simple, fast and generic implementation of the pipeline design pattern.
MIT License
6 stars 0 forks source link

Make handlers without return type return `void` instead of `Unit` #2

Open lawrence-laz opened 1 year ago

lawrence-laz commented 1 year ago

This is only to simplify user code, the internal would still use Unit not to create special cases. Can be implemented by having a wrapper that wraps user handler and returns Unit.Value instead.