core: Add private global data interface. #3915
Add `finally` method for deferred execution
core: Add new weak task API