Closed segabor closed 5 years ago
NIO does not provide itself pattern described above so the next step is to write a thin layer above NIO that supports it.
I much better approach is described in this pitch https://forums.swift.org/t/swiftnio-redis-client/19325
To make more sense to this ticket, let's make it specific to SuperColliderExample. Encapsulate NIO client communication into a single type making it more friendly to use.
Moved ticket here https://github.com/segabor/SCClient/issues/2
Revisit examples and make them more NIO friendly. Currently they work but they are too ugly to read. Particularly, requesting synth frequency part in SuperColliderExample should be revisited and make it more readable like
channel.getFrequency().then { print(freq) }