Data dodania Pytanie
2018-02-12 10:02 ToArrayAsync() throws "The source IQueryable doesn't implement IAsyncEnumerable" »
I have a MVC project on ASP.NET Core, my problem is connected with IQueryable and asynchronous. I wrote the following method for search in IQueryable&...
(3) odpowiedzi
2018-02-11 22:02 How Do You Use JS Promises To Keep Requesting From API While The API Returns A Value? »
I am trying to keep requesting from an API while the API continues to return. I am using the LaunchLibrary API (https://launchlibrary.net/docs/1.3/api...
(2) odpowiedzi
2018-02-11 16:02 Is Promise.resolve a asynchronous function? »
When I have the following code: var promise1 = Promise.resolve([1, 2, 3]); promise1.then((value) => { console.log(value); // expected...
(4) odpowiedzi
2018-02-09 12:02 Why is my async function not working? I just want it to console.log the results of the mongodb query? »
I keep getting Promise { < pending > } on the console.log, I am not too experienced at all with Async functions. (Using JavaScript, Node, Mongodb)...
(2) odpowiedzi
2018-02-07 23:02 How do you get javascript promises to work with node + express and display on an EJS file? »
Before saying to look at the docs, I have and they were not helpful in the slightest. I have an web page with node as the backbone. On one page I nee...
(2) odpowiedzi
2018-02-07 12:02 Wait for all different promise to finish nodejs (async await) »
I am currently waiting for all the promise to finish sequentially like this: (async() => { let profile = await profileHelper.getUserData(usernam...
(3) odpowiedzi
2018-01-29 15:01 Async await on component did mount »
This is my componentDidMount method. I want to set the state of the current user and then call the function when that user is set. How can I do this? ...
(4) odpowiedzi
2018-01-28 21:01 how to make an async call to firebase? »
I'm struggling to retrieve data from firebase. basically im creating a dating app and when a user "likes" someone, it should check the displayed users...
(2) odpowiedzi
2018-01-22 06:01 JS: How to test for async function support »
I was wondering if it was even possible to test for async function support in JS. try { async () => {} } catch (err) { // No support } T...
(1) odpowiedzi
2018-01-21 11:01 Callbacks, Promises, Async await in Javascript - still confusing »
I am new to Javascript, i see lot of videos, still i cant understand this exact use of callbacks, promises and async await. Here i write small code up...
(2) odpowiedzi
2018-01-20 18:01 Calling one async function inside another in redux-thunk »
I'm building a react app and use redux-thunk for async operations. I have two functions getActivities() and createActivity() and I want to call the fo...
(2) odpowiedzi
2018-01-14 23:01 Right way to implement DispatchQueue »
I am writing a simple cache framework for an app project and using GCD and DispatchQueues within Closures to save and retrieve objects from the framew...
(1) odpowiedzi
2018-01-13 14:01 Is there a good way to Promise.all an array of objects which has a property as promise? »
If I have an array of promises, I can simply use Promise.all to wait for them all. But when I have an array of objects, each of them having some prop...
(3) odpowiedzi
2018-01-12 14:01 Async callback function in jquery .done() not executing »
Why does giving an async function as a callback function for a jQuery deferred.done() not work? i.e. Why does jqueryObj.fadeTo("slow", 1) .promis...
(3) odpowiedzi
2018-01-11 23:01 NSURLSessionDownloadTask occasionally results in nil data »
I'm downloading images asynchronously from a CDN in my app (In a UICollectionView). Each time I run it, different images will fail to load. About 1-3 ...
(1) odpowiedzi
2018-01-11 02:01 Passing Variable to Asynchronous JavaScript Function Invoked in Loop (React) »
I'm writing some JavaScript code for my React project. The code loads a series of images, then updates the state with the dimensions of each image. Th...
(2) odpowiedzi
2018-01-10 23:01 How to call async await in JS such that after a certain time it fetches again? »
I have an async await as below where I am just fetching some JSON data. It is fetching ok. However, if you look in the console, you will notice that i...
(1) odpowiedzi
2018-01-03 08:01 Handle multiple asynchronous post request in angularJS »
Here is a situation .. we have a UI where you select the products you want to install on the vm, so initially we used to send the payload with array o...
(2) odpowiedzi
2017-12-31 09:12 Postgres create table asynchronously »
i'm struggling with postgres and async task queue i'm trying to create a new table - whatever worker reach this point first - create the table using...
(1) odpowiedzi
2017-12-30 13:12 Cast Task<T> to Task<object> in C# without having T »
I have static class full of extension methods where each of the methods is asynchronous and returns some value - like this: public static class MyCon...
(5) odpowiedzi
2017-12-28 19:12 How to synchronise '.append()' and ajax query within 'for' loop »
Good day, everyone! It seems like I have asynchronous actions issue which I cannot figure out how to handle. I expect this code to show Category ...
(2) odpowiedzi
2017-12-25 17:12 Is using async componentDidMount() good? »
Is using componentDidMount() as an async function good practice in React Native or should I avoid it? I need to get some info from AsyncStorage when...
(2) odpowiedzi
2017-12-24 22:12 c# HttpClient PostAsync with async and await not working »
I am running into a deadlock situation when trying to post to WebApi 2 from WebApi 1 using HttpClient PostAsync and using async and await. Below is W...
(1) odpowiedzi
2017-12-23 04:12 How to convert sync and async recursive function to iteration in JavaScript »
Looking for a specific implementation for both sync and async recursive functions that could be used as a starting point to turn future recursive func...
(2) odpowiedzi
2017-12-22 09:12 What exactly happens call async method without await keyword? »
I have a web server and there is a periodic job merges and send records (lots of request logs). Task.Run(() => { while (true) { t...
(2) odpowiedzi
2017-12-22 02:12 What would be the right approach to use await instead of Promises? »
I have being using Promises for a long time, and they are always the "thing" that I use to control the workflow of my programs. Example: Promise .r...
(1) odpowiedzi
2017-12-21 17:12 Nested Async/Await Nodejs »
Cannot seem to figure out why this is not working for me. I have a parent function that performs an AWAIT on a child load process... the LOAD process ...
(1) odpowiedzi
2017-12-13 15:12 Why does this JavaScript async/await code not behave as expected? »
I've tried reading guides and tutorials to async/await, but I can't seem to find this addressed anywhere. Here is the code in question: var...
(4) odpowiedzi
2017-12-10 18:12 Is an IOCP a thread that is running while the I/O is taking place or after? »
I'm trying to understand I/O Completion Ports and specifically how they relate to using async-await for I/O. The infamous article There is No Thread...
(2) odpowiedzi
2017-12-08 18:12 Async Concurrent Queue with max concurrency »
I'm running across a bug with a custom asynchronous queue that calls 10 async functions at a time. I'm initiating the queue with 50 jobs, once first ...
(1) odpowiedzi
2017-12-08 16:12 Is it OK to return from an async method before the final await? »
I have a web page (aspx) that calls an async method in a class. The async method looks something like this: public async Task<MyThing> GetMyTh...
(1) odpowiedzi
2017-12-05 08:12 How to get returned value without await opeartor »
I need to get the returned value without await operator(in below sample I need to get the "hello world" in var y without await operator). Because one ...
(3) odpowiedzi
2017-12-04 14:12 How to make sure a task is started and safely start it if not? »
I get an IEnumerable<Task> tasks from somewhere that I do not control. I don't know if the tasks are manually created using new Task, Task.Run, ...
(1) odpowiedzi
2017-12-04 00:12 Call chain for async/await ... await the awaitable or return the awaitable? »
Given an async method: public async Task<int> InnerAsync() { await Task.Delay(1000); return 123; } And calling it through an intermed...
(1) odpowiedzi
2017-12-02 13:12 C# async/await progress reporting is not in expected order »
I am experimenting with async/await and progress reporting and therefore have written an async file copy method that reports progress after every copi...
(1) odpowiedzi