Lines Matching refs:signal
796 // Ensure that options.signal.removeEventListener was called
799 const signal = ac.signal;
801 signal.removeEventListener = common.mustCall(
807 rli.question('hello?', { signal }).then(common.mustCall());
912 // Calling the question callback with abort signal
915 const { signal } = new AbortController();
916 rli.question('foo?', { signal }).then(common.mustCall((answer) => {
926 const signal = ac.signal;
931 assert.rejects(rli.question('hello?', { signal }), { name: 'AbortError' })
940 const signal = AbortSignal.abort('boom');
941 await assert.rejects(rli.question('hello', { signal }), {
947 // Throw an error when question is executed with an aborted signal
950 const signal = ac.signal;
954 rli.question('hello?', { signal }),