Skip to content
View BrenoAlberto's full-sized avatar
🦜
peace tranquility mind flowers
🦜
peace tranquility mind flowers

Highlights

  • Pro

Organizations

@nuconthackers
Block or Report

Block or report BrenoAlberto

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
BrenoAlberto/README.md

Hi there 👋

Pinned Loading

  1. MeetMaster MeetMaster Public

    Python

  2. juriscrape juriscrape Public

    Python

  3. It takes an array of functions that ... It takes an array of functions that return promises (asyncFunctions) and the maximum number of functions to be executed concurrently (maxConcurrent). The function will execute up to maxConcurrent functions in parallel, and once a function completes, it will start a new one until all functions have completed. The function returns a promise that resolves with an array of results in the same order as the input functions. This method provides an efficient way to execute multiple async tasks concurrently while limiting the number of tasks running at any given time.
    1
    export async function concurrentTaskQueue<T>(asyncFunctions: Array<() => Promise<T>>, maxConcurrent: number): Promise<T[]> {
    2
        let currentIndex = 0;
    3
        const runningFunctions = new Set<Promise<T>>();
    4
        const orderedRunnedFunctions: Map<Promise<T>, number> = new Map();
    5
        let results: Array<T> = Array(asyncFunctions.length);
  4. chillfy-api chillfy-api Public

    JavaScript

  5. ws-crawler-api ws-crawler-api Public

    Python 2

  6. EcommerceScrapper EcommerceScrapper Public

    TypeScript