Skip to content

Using async function to make await call #226

@dawadam

Description

@dawadam

Feature Proposal

Using async function to make await call.

Feature Use Case

const fs = require('fs');
const csv = require('csv-parser');

fs.createReadStream('file.csv')
  .pipe(csv())
  .on('data', async (data) => {
    await myAsyncFunction(data);
  })
  .on('end', async () => {
    await myAsyncFunctionEndOfRead();
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions