Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrien LUCAS adrienlucas

View GitHub Profile
@adrienlucas
adrienlucas / thenable.js
Created Jun 12, 2017
jQuery Thenable stacking POC
View thenable.js
import jQuery from 'jquery';
it('stacks several promises with one rejection', () => {
const p1 = new jQuery.Deferred();
const p2 = new jQuery.Deferred();
const p3 = new jQuery.Deferred();
const stack = jQuery.when(...promises);
expect(stack.state()).toBe('pending');
View keybase.md

Keybase proof

I hereby claim:

  • I am adrienlucas on github.
  • I am adrienlucas (https://keybase.io/adrienlucas) on keybase.
  • I have a public key ASCu32wHMOVwGIyjYn8HN2oWjHucMDFQuqgzU-cqGpdX3wo

To claim this, I am signing this object: