aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/src/internal/scheduled/schedulePromise.ts')
-rw-r--r--node_modules/rxjs/src/internal/scheduled/schedulePromise.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts b/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts
new file mode 100644
index 0000000..f1211d0
--- /dev/null
+++ b/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts
@@ -0,0 +1,8 @@
+import { innerFrom } from '../observable/innerFrom';
+import { observeOn } from '../operators/observeOn';
+import { subscribeOn } from '../operators/subscribeOn';
+import { SchedulerLike } from '../types';
+
+export function schedulePromise<T>(input: PromiseLike<T>, scheduler: SchedulerLike) {
+ return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage