There's opportunity in the future to refactor the current decorated on_topology_event handler with alisten_to instead, and then also make the POST v3/ endpoint async, the main benefit would also be able to remove the self._lock since we wouldn't have tasks yields happening, while also being having liighter handlers, the roadblock to address this chore here is also refactor the unit tests issue #50 to be async compatible, until we get there, in the meantime, it's easier to leverage dynamic_single thread mode on listen_to instead https://github.com/kytos-ng/kytos/pull/399.
There's opportunity in the future to refactor the current decorated
on_topology_event handler
withalisten_to
instead, and then also make thePOST v3/
endpoint async, the main benefit would also be able to remove theself._lock
since we wouldn't have tasks yields happening, while also being having liighter handlers, the roadblock to address this chore here is also refactor the unit tests issue #50 to be async compatible, until we get there, in the meantime, it's easier to leveragedynamic_single
thread mode onlisten_to
instead https://github.com/kytos-ng/kytos/pull/399.