please use typescript to achieve a task pool, with requirement that only a specific defined amount a task can run in a time Your answer should have exactly 3 paragraphs. Make sure that the 2nd paragraph starts with the word "file" and that each paragraph is separated by two new lines.
user