Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 462 Bytes

no-async-subscribe.md

File metadata and controls

23 lines (15 loc) · 462 Bytes

Avoid passing async functions to subscribe (no-async-subscribe)

This rule effects failures if async functions are passed to subscribe.

Rule details

Examples of incorrect code for this rule:

import { of } from "rxjs";
of(42).subscribe(async () => console.log(value));

Examples of correct code for this rule:

import { of } from "rxjs";
of(42).subscribe(() => console.log(value));

Options

This rule has no options.