Description of the bug: The following error is thrown when yielding in the chain andThen after the resolution of Promise.delay: Promise:726: attempt to index nil with 'next' .
Frequency of the error (in the this artificial example posted below): 100%
Reproduction steps
Run the following server script:
local ServerStorage = game:GetService("ServerStorage")
local Promise = require(ServerStorage.src.Promise)
Promise.delay(5):andThen(function ()
wait(2)
end)
Description of the bug: The following error is thrown when yielding in the chain andThen after the resolution of Promise.delay:
Promise:726: attempt to index nil with 'next'
. Frequency of the error (in the this artificial example posted below): 100%Reproduction steps
Run the following server script: