hexagonal-rust icon indicating copy to clipboard operation
hexagonal-rust copied to clipboard

Sync/async ports

Open jimyx17 opened this issue 3 years ago • 1 comments

While this is a nice and fun starting point, there's a big flaw in the whole ecosystem when it is applied to the rust world. By it's nature, most repositories and framework ports are handling some form of I/O. This means that, if traits are not defined as async or futures, I/O operations are going to be blocking.

Changing traits to async traits is not trivial at all and not supported by the language... yet

The best solution is to this issue is to apply this macro and change the appropriates structs to support Sync + Send traits.

jimyx17 avatar Aug 17 '22 14:08 jimyx17

Indeed :) Thank you to have taking the time to bring this topic up

antoinecarton avatar Aug 17 '22 18:08 antoinecarton