Skip to content

Instantly share code, notes, and snippets.

View souvik666's full-sized avatar
🪖
Working from home

souvik dutta souvik666

🪖
Working from home
View GitHub Profile
@souvik666
souvik666 / AsyncTasks.ts
Last active August 4, 2023 14:25
Asynchronous Task Handling with Dependency in Node
/*
*? roblem Statement
Consider we have multiple async tasks A, B, C, D, and E (not promises). A, B, and C are independent tasks, while D depends on A and B to perform its task, and E depends on D and C to perform its task.
ite a Node.js class to handle these asynchronous tasks and their dependencies. In the end, run all the tasks concurrently and print the results.
*/
class AsyncTasks {
constructor() {
this.results = {};
this.concurrencyLimit = 2;
@souvik666
souvik666 / GitCommitEmoji.md
Created April 27, 2023 11:08 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji