nl_tokens: Execute API done hook
pl_tokens: function hookAPIDone ( done , sync , args , ctx ) { // API done interception let hasDoneHook = isFunction ( <mask> ) ; let hasIntercepted = false ; let doneHookInfo ; if ( hasDoneHook ) { doneHookInfo = createAPIDoneHook ( done , ctx ) ; // intercept async API based the args: `success`/`fail`/`complete` callback hasIntercepted = interceptAsyncAPIDone ( sync , args , doneHookInfo . hook ) ; } return { hasDoneHook , hasIntercepted , doneHookInfo } ; }