Smalltalk createPackage: 'Kernel-Promises'! Object subclass: #Thenable instanceVariableNames: '' package: 'Kernel-Promises'! !Thenable commentStamp! I am the abstract base class for Promises. My subclasses should wrap existing JS implementations. I contain methods that wrap Promises/A+ `.then` behaviour.! !Thenable methodsFor: 'promises'! all: nadicBlock ! catch: aBlock ! on: aClass do: aBlock ! on: aClass do: aBlock catch: anotherBlock ! then: aBlock ! !