We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46ecd9 commit 5d00a5cCopy full SHA for 5d00a5c
test/Async/Promise.vimspec
@@ -863,6 +863,18 @@ Describe Async.Promise
863
Assert KeyNotExists(l, 'Goodbye')
864
End
865
866
+ It sequentially calls functions in factories beyonds &maxfuncdepth and resolves promises
867
+ let l = l:
868
+ let fs = map(
869
+ \ range(&maxfuncdepth * 2),
870
+ \ { k -> { -> P.new({r -> r(k) }) } },
871
+ \)
872
+ let p = P.chain(fs).then({ v -> extend(l, { 'result': v })})
873
+ call s:wait_has_key(l, 'result')
874
+ Assert Equals(len(result), &maxfuncdepth * 2)
875
+ Assert Equals(result, range(&maxfuncdepth * 2))
876
+ Assert Equals(p._state, FULFILLED)
877
+ End
878
879
880
Describe .on_unhandled_rejection
0 commit comments