Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
mobile
/
src
/
lib
/
serialized-async-queue.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
12 lines
304 Bytes
Copy permalink
Copy
Raw
1
export
class
SerializedAsyncQueue
{
2
private
tail
:
Promise
<
void
>
=
Promise
.
resolve
();
3
4
run
<
T
>
(
operation
:
()
=>
Promise
<
T
>
):
Promise
<
T
>
{
5
const
result
=
this
.
tail
.
then
(
operation
,
operation
);
6
this
.
tail
=
result
.
then
(
7
()
=>
undefined
,
8
()
=>
undefined
,
9
);
10
return
result
;
11
}
12
}