Skip to content

Commit 9190cd5

Browse files
committed
feat: added @matrixai/lint and removed old linting elements, ran linting with js-lint
1 parent 0809db2 commit 9190cd5

File tree

5 files changed

+3094
-1360
lines changed

5 files changed

+3094
-1360
lines changed

.eslintrc

-177
This file was deleted.

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
44

55
> The following are some architectural observations provided by **Dean Tribble** on the [es-discuss mailing list](https://mail.mozilla.org/pipermail/es-discuss/2015-March/041887.html):
66
>
7-
> *Cancel requests, not results*
7+
> _Cancel requests, not results_
88
>
99
> Promises are like object references for async; any particular promise might
1010
> be returned or passed to more than one client. Usually, programmers would
1111
> be surprised if a returned or passed in reference just got ripped out from
12-
> under them *by another client*. this is especially obvious when considering
12+
> under them _by another client_. this is especially obvious when considering
1313
> a library that gets a promise passed into it. Using "cancel" on the promise
1414
> is like having delete on object references; it's dangerous to use, and
1515
> unreliable to have used by others.
1616
>
17-
> *Cancellation is heterogeneous*
17+
> _Cancellation is heterogeneous_
1818
>
1919
> It can be misleading to think about canceling a single activity. In most
2020
> systems, when cancellation happens, many unrelated tasks may need to be
@@ -23,14 +23,14 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
2323
> happen?
2424
>
2525
> - the async fetch of more query results should be terminated and the
26-
> connection closed
26+
> connection closed
2727
> - background computation to process the remote results into renderable
28-
> form should be stopped
28+
> form should be stopped
2929
> - rendering of not-yet rendered content should be stopped. this might
30-
> include retrieval of secondary content for the items no longer of interest
31-
> (e.g., album covers for the songs found by a complicated content search)
30+
> include retrieval of secondary content for the items no longer of interest
31+
> (e.g., album covers for the songs found by a complicated content search)
3232
> - the animation of "loading more" should be stopped, and should be
33-
> replaced with "user cancelled"
33+
> replaced with "user cancelled"
3434
> - etc.
3535
>
3636
> Some of these are different levels of abstraction, and for any non-trivial
@@ -41,7 +41,7 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
4141
> get passed the one that would be cancelled if the user hits stop and the
4242
> right thing happens.
4343
>
44-
> *Cancellation should be smart*
44+
> _Cancellation should be smart_
4545
>
4646
> Libraries can and should be smart about how they cancel. In the case of an
4747
> async query, once the result of a query from the server has come back, it
@@ -54,7 +54,7 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
5454
> worker complete (so that you can reuse it) rather than abruptly terminate
5555
> it (requiring discarding of the running worker and cached state).
5656
>
57-
> *Cancellation is a race*
57+
> _Cancellation is a race_
5858
>
5959
> In an async system, new activities may be getting continuously scheduled by
6060
> asks that are themselves scheduled but not currently running. The act of
@@ -70,7 +70,7 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
7070
> system), but that schedules work that will be cancelled (parse the
7171
> publication of an update to the now-cancelled query).
7272
>
73-
> *Cancellation is "don't care"*
73+
> _Cancellation is "don't care"_
7474
>
7575
> Because smart cancellation sometimes doesn't stop anything and in an async
7676
> environment, cancellation is racing with progress, it is at most "best
@@ -82,7 +82,7 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
8282
> and transactions. It was amazing how much simpler cancellation logic
8383
> becomes when it's "don't care".
8484
>
85-
> *Cancellation requires separation of concerns*
85+
> _Cancellation requires separation of concerns_
8686
>
8787
> In the pattern where more than one thing gets cancelled, the source of the
8888
> cancellation is rarely one of the things to be cancelled. It would be a
@@ -92,7 +92,7 @@ This library provides the ability to cancel asynchronous tasks. Cancelling async
9292
> cancellation token and cancellation source mirrors that separation between
9393
> a promise and it's resolver.
9494
>
95-
> *Cancellation recovery is transient*
95+
> _Cancellation recovery is transient_
9696
>
9797
> As a task progresses, the cleanup action may change. In the example above,
9898
> if the data table requests more results upon scrolling, it's cancellation

0 commit comments

Comments
 (0)