Skip to content

Instantly share code, notes, and snippets.

@dbrgn
dbrgn / in.ts
Last active September 7, 2021 07:58
TypeScript + async / await + throw
async function foo() {
await sleep(1000);
console.log(1);
await sleep(1000);
console.log(2);
console.log("throwing now");
if (1 == 1) {
throw "oh shitshit";
}
await sleep(1000);
#file proxysql.cfg
# This config file is parsed using libconfig , and its grammar is described in:
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-File-Grammar
# Grammar is also copied at the end of this file
datadir="/var/lib/proxysql"