pothos-library: implement signals and slots api on top of ports