3 ms·
In general, decouple libraries from use case dependent assumptions. This holds true not just for concurrency, but for memory management, sockets, file streams e
by boomlinde 7y ago
In general, decouple libraries from use case dependent assumptions. This holds true not just for concurrency, but for memory management, sockets, file streams etc. Don't assume that a per-object heap allocation is good enough for me. Don't assume that I want to serialize to a file system. Don't assume that a channel has a large enough buffer.