No Particular Method

    This package has been deprecated

    Author message:

    this is just a silly project i made to learn some c++ apis, please don't use it in any serious projects

    @snek/syncify

    0.0.6 • Public • Published

    syncify

    (this is not something you should use in prod)

    const syncify = require('@snek/syncify');
    
    const p0 = new Promise((r) => {
      setTimeout(() => r('works'), 1000);
    });
    
    // blocks for 1000ms
    console.log(syncify(p0)); // 'works!'
    
    const p1 = Promise.reject(new Error('aaaa'));
    
    syncify(p1); // Error: 'aaaa'

    Keywords

    none

    Install

    npm i @snek/syncify

    DownloadsWeekly Downloads

    1,877

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • snek