Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Holo314
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
Holo314
4y ago
Java is built upon it's community :), look no further: https://github.com/Randgalt/record-builder , although hiding the constructor behind the builder is not something I am sure supported by that library I also rem
2.
▲
by
Holo314
4y ago
Virtual threads are designed for light, IO-bound, tasks, if your task is heavy/CPU-bound tasks then you won't necessarily want to switch to virtual threads with ScopedValue.
3.
▲
by
Holo314
4y ago
- ScopedValue doesn't have a direct equivalent in Kotlin, but CoroutineContext.Element and ThreadContextElement inside of CoroutineContext serve the same purpose. I really think Kotlin overcomplicated this idea. - Record Patterns are