Node; Q Promise delay
问题 Here are some simple questions based on behaviour I noticed in the following example running in node: Q('THING 1').then(console.log.bind(console)); console.log('THING 2'); The output for this is: > "THING 2" > "THING 1" Questions: 1) Why is Q implemented to wait before running the callback on a value that is immediately known? Why isn't Q smart enough to allow the first line to synchronously issue its output before the 2nd line runs? 2) What is the time lapse between "THING 2" and "THING 1"