Skip to content

Console logs occasionally skipped before shutdown #161

@JacksonKearl

Description

@JacksonKearl
const delay = () => new Promise(resolve => setTimeout(resolve, 14));

(async () => {
  console.log('1')
  await delay()
  console.log('2')
  await delay()
  console.log('3')
  await delay()
  console.log('4')
  await delay()
  console.log('5')
  await delay()
  console.log('6')
  await delay()
  console.log('7')
  await delay()
  console.log('8')
  await delay()
})()

Try running this a few times, if you see no output increase delay if you see full output decrese it. At around 11-14ms I see anywhere between no output and full output, with the output sometimes reordered.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions