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);;...
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...
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...
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...
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...
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',...
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...
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...