export async function promisify ( method , ... params ) { return new Promise ( ( resolve , reject ) => { method ( ... params , ( err , result ) => { if ( err ) { reject ( err ) ; } else { resolve ( result ) ; } } ) ; } ) ; }