Add support for an advanced task scheduler managed by the application.

AFAIK function types are lowercase (primitive). Re https://developers.google.com/closure/compiler/docs/js-for-compiler