Questions tagged as 'assincronismo'

0
answers

Problem with thread, interrupt and synchronism [closed]

The class Main does this: synThread tm = new synThread(); Person objPersont = new Person(); //input_file is used to read bytes from an input file FileInputStream input_file = new FileInputStream(input_file_path);;...
asked by 23.11.2014 / 22:58
2
answers

How to use async / await in methods that return void?

I have a problem with my application, where due to the large volume of processing, my Form hangs. During my research I discovered that a async method solves this, but the functions executed on my "execute" button return void, so I...
asked by 09.08.2018 / 18:21
1
answer

Working with asynchrony using ReactJS

I have the following code: requireUsers = () => { this.users = database.ref('users') this.users.on('value', snapshot => { this.state.users = snapshot.val() Object.keys(snapshot.val()).map((value,key) => emails[...
asked by 04.11.2018 / 04:32
2
answers

Is there a surefire way to not wait for a process?

Is there a secure way to not wait for a process in .NET? async Task DoFoo() { // ... GravarLog(); // ... } void GravarLog() { // ... } In the code above, my whole process will wait for the GravarLog() method to finis...
asked by 28.07.2017 / 22:32
1
answer

Laravel 4.2 - Working with asynchronous tasks to generate reports .xlsx

Hello, I am working with an application in Laravel 4.2 and it requires that when the user requests to generate a system report, a task is launched to generate the report, when this report is ready in a folder, I need to send an email to the user...
asked by 23.11.2016 / 21:02
1
answer

Python asyncio and threading

I am studying the module asyncio of Python and there is the function run_coroutine_threadsafe which should be run on a thread other than the event loop. Here's my script: #!usr/bin/python3 # -*- coding: utf-8 -*- import asyn...
asked by 15.08.2018 / 02:53
1
answer

Error in requests with aiohttp in asyncio

import time import urllib.request import asyncio import aiohttp URL = 'https://api.github.com/events' MAX_CLIENTS = 10 def fetch_sync(pid): print('Fetch sync process {} started'.format(pid)) start = time.time() response = urllib.re...
asked by 12.04.2018 / 07:19
2
answers

How to store return on Ajax request in a variable

   I tried the following code but it does not work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria',...
asked by 12.02.2018 / 03:07
1
answer

Return of asynchronous methods javascript

I would like to save the return of an asynchronous function. The function is as follows: cb.tabela(serie).then(function(tabela) { console.log(tabela); }, function(err){ console.log(err); }); What I wanted was to be able to do someth...
asked by 15.09.2017 / 01:53
1
answer

Operation Async how to know when completed?

I have 2 methods Async to make a Insert in a database in the cloud .. For reasons of the internet, the transaction may fail to handle this problem, I am using Commit and RollBack , even ai blz. However, I need to...
asked by 20.07.2017 / 21:22