Skip to content

Reason behind setImmediate(done)? #44

@petasittek

Description

@petasittek

What is the reason of calling the callback function done() right at the beginning instead of the expected place - after the processing is done? Is there any speedup factor or? I find it quite confusing.

See: https://github.com/segmentio/metalsmith-permalinks/blob/16b3be73a18b33a0fab826cb46489d6f3cb9476e/lib/index.js#L35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions