3 ms·
How will ThreadLocal behave under different fiber context switches?
by exabrial 7y ago
How will ThreadLocal behave under different fiber context switches?
- pron 7y agoA fiber will appear to be a thread. You can even call Thread.currentThread and get a consistent Thread object representing the fiber. This is done so that as much existing code as possible would be able to run, unchanged, in fibers. We may (or may not), however, introduce newer, better constructs that new code will be encouraged to use.
- exabrial 7y agoOooo cool! It may be important or useful to include the 'old' contract elsewhere in the SDK.