Open magicprinc opened 1 year ago
Second commit contains:
1) bug fix in DelegatingScheduler#schedule: (delay == 0) → (delay <= 0)
2) fix, if user's executor is actually commonPool() without parallelism. Similar to CompletableFuture.screenExecutor
3) Use less memory: don't capture variable if executor is commonPool (Lambda can access it without capturing through static field.
Closes #349