catalog-backend: Deprecate runPeriodically function

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-02-17 13:55:56 +01:00
parent 4805c3d13c
commit 957cb4cb20
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': patch
---
Deprecated the `runPeriodically` function which is no longer in use.
+1 -1
View File
@@ -1133,7 +1133,7 @@ export interface RouterOptions {
// Warning: (ae-missing-release-tag) "runPeriodically" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
// @public @deprecated
export function runPeriodically(fn: () => any, delayMs: number): () => void;
// Warning: (ae-missing-release-tag) "StaticLocationProcessor" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -23,6 +23,7 @@
* @param delayMs - The delay between a completed function invocation and the
* next.
* @returns A function that, when called, stops the invocation loop.
* @deprecated use \@backstage/backend-tasks package instead.
*/
export function runPeriodically(fn: () => any, delayMs: number): () => void {
let cancel: () => void;