This is the code from a blog post
IO_Map<T, U>(list: T[], mapFn: Mapper<T, U>, limit?: number): Promise<U[]>
CPU_Map(filename: string) => <T, R>(list: T[], mapFn: Mapper<T, R>, limit?: number): {
mapper: () => Promise<R[]>;
thread: () => void;
}