MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / asCronJob

Function asCronJob

extensions/cron/src/types.ts:33–38  ·  view source on GitHub ↗
(binding: Binding<T>)

Source from the content-addressed store, hash-verified

31 * @param binding - Binding object
32 */
33export function asCronJob<T = unknown>(binding: Binding<T>) {
34 return binding
35 .apply(extensionFor(CRON_JOB_SCHEDULER))
36 .tag({namespace: CronBindings.CRON_JOB_NAMESPACE})
37 .inScope(BindingScope.SINGLETON);
38}
39
40/**
41 * Cron job with an optional name

Callers

nothing calls this directly

Calls 4

extensionForFunction · 0.90
inScopeMethod · 0.80
tagMethod · 0.80
applyMethod · 0.80

Tested by

no test coverage detected