Adding qaisjp's lost merge changes for src/core/async.lua