All of the following information is based on go version go1.14.7 darwin/amd64
.
(Bold = supported by go
out of the box, ie. without the help of a C compiler, etc.)
aix
android
export class Deferred<T> { | |
promise: Promise<T>; | |
resolve: (value?: T | PromiseLike<T>) => void; | |
reject: (reason?: any) => void; | |
constructor() { | |
this.promise = new Promise((resolve, reject) => { | |
this.resolve = resolve; | |
this.reject = reject; | |
}); |
// it's fucking hard to find this piece of shit | |
const signals = { | |
SIGHUP: 1, | |
SIGINT: 2, | |
SIGQUIT: 3, | |
SIGILL: 4, | |
SIGTRAP: 5, | |
SIGABRT: 6, | |
SIGIOT: 6, | |
SIGBUS: 7, |