Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Steve Cox
    Hi All.. I am having an issue with Promise.filter, could someone advise?
    Hi. I'm using bluebird with aurelia and only in firefox we get an illegal character error in bluebird.min.js v3.5.1 when it loads. IE and Chrome are fine. Has anyone experienced this with firefox?
    @fratting Appears to be a variety of problems, one of which is the tryCatcher function executing a function called 'bound error'. the target var is the source of the illegal character. Another instance is the console.warn at like 1546 of the unminified bluebird.js file. console is considered an illegal character. Odd and only with firefox
    Martijn Poelman
    Can someone point me in the right direction using bluebird promises in Aurelia? I have tried tons of methods but I keep getting the same type of errors (bluebird has no export default 'Promise', compiler error: duplicate key 'Promise' and such)
    Also, "Promise.config is not a function", and "Promise is not a constructor"
    Ziad El Khoury Hanna
    What is the license for the code snippets in the Bluebird's Wiki, more specifically the Optimization killers?
    Thank you
    Owen Garland
    Where is best to ask for some clarification on a bluebird functions flow?

    Basically was hoping Promise.map().then() would run after all the mapped promises, however the then is running immediately.


    So I would hope for the indexes to be built after the save operations, but it's happening immediately.
    Ziad El Khoury Hanna
    @bag-man you are using it correctly, but the mapper function should return a promise; It currently returns nothing (or undefined) which means that all the promises are resolved with undefined and so the then is running immediately
    Owen Garland
    Ahhhh I see, let me try that :)
    Beautiful, that was it, thank you so much! The pain that has saved me :D
    Ziad El Khoury Hanna
    @bag-man Great :smile:
    Owen Garland
    I'd been banging my head on this script for a week, and just sorted it in like two hours. Shows what a good nights sleep can do! Right I shall be off, thanks again!
    David Schwartz
    Hey everyone, I am trying to make an objects of objects from promise values. What I'd like to do is have an object with multiple objects, and from there have multiple objects pointed at other objects that are pointed at promise.props. Does anyone know of a way to do this?
    Krishnan Subramanian
    Hi #channel .. are bluebird promises safe to use with async/await .. i.e. can I use await on a bluebird promise ?
    Roberto Di Lillo
    Hi guys, is anyone able to address me to the proper resourses to promisify my mysql in node?
    Eric Eastwood
    Roberto Di Lillo
    @MadLittleMods sorry for the late late late reply, after trying on and on I actually made it and forgot to write here :)
    thanks guys :)
    Eric Eastwood
    @koop4 What was your solution? Best to post it so future onlookers can reference it
    Hi. there is a statistical analysis tool for performance testing https://github.com/pod4g/hiper/
    Roberto Di Lillo
    Hi guys, I'm trying to understand cooroutine but there must be something i'm not understanding xD
    here's my "not" working example:
    resultSet.map( item => {
          Promise.coroutine( function* (user) {
            let opt = { 
              TableName: 'tableName',
              KeyConditions: {  
                username: {
                  AttributeValueList: [user],
                  ComparisonOperator: 'EQ'
              ProjectionExpression: 'firstname, lastname',
            let userFriends = yield dynamodb.queryAsync(opt)
            /*  random code here to assign first name and last name to item */ 
        return item 
    Hey, I just realized today that in bluebird 3.5.2 Promise.race is disabled. How can I access this function, or is there a different way of using it?
    Eric Eastwood
    @danyextreame_twitter Are you sure? I don't see any notice in the docs and seems to work fine with a quick test in https://npm.runkit.com/bluebird
    Phuong Nguyen
    Anyone has experience setting jwplayer with AWS RMTP?
    I have an issue in bluebird. The issue is that bluebird.config is not a function
    Juan J Ibarra
    hello, I would like to make a request for a feature, currently everything works fine, but I would like to be able to add a feature for objects undefined | null
    these methods could be called switchIfEmpty thenIfEmpty trowIfEmpty
    this would be useful after a database query, after making a filter, to return an error such as, User Not Exist, Password Not Match, or return a default object
    Why the more I learn the promise, the more confused and embarrassed..
    Michael Pirovano
    This is admittedly pretty random. Do with it what you will and interpret it however you see fit, but here goes: I have been paid to write about topics I know nothing about since I was 15 years old. I've managed the knowledge base for a global payments fraud platform, nuclear reactors, and offshore oil rigs. In April of 2019, I couldn't articulate how a "stock" differs from a "share". By May of 2019, I was publishing gated content which was (A) full of speaking
    ^^^ sorry, pressed enter too early (A) full of math, and (B) designed to speak specifically to the heads of venture capital firms. I say all this for context. Because until I emerged on the other side of an internet rabbit hole, looked around, and saw this: http://bluebirdjs.com/docs/why-promises.html
    Michael Pirovano
    I cannot remember the last time I was fully just unable to take so much as a GUESS about what I was reading 😆 in all these years, I don't think I've ever come across a full webpage worth of content that was as "inside baseball" as this. I mean...this has to pretty esoteric even to, like, a career software developer, right?
    Hey all :wave: I'm looking at the promise flow control module for Bluebird. The concurrency argument helps to control for memory usage and api rate limiting, right?
    why might I want to set concurrency = 1 and only allow one function at a time?
    2 replies
    Wondering if someone can help me figure this bluebird.js error out or suggest advice.
    there are several similar questions around but no one found a working solution yet
    Het Patel
    Hey, is there any way to tree shake the blue bird bundle to get the code which is needed for my usage. I only want to use the cancel method from bluebird while methods like map,reduce,settle etc are of no use to me still it is getting downloaded with my bundle.
    Hi, I am updating some code I wrote in 2018.
    I'd like to replace the .then()/.catch() syntax with async/await/throw.
    Does Bluebird support async/await?
    Second, the reason I used BB in 2018 was its support for Promise.using() and disposers. I'm now trying to find out if this feature ever made it into standard ES2016+. Does anyone know?
    hi there, how to use Bluebird with async/await?
    I want return a Bluebird on a async function.