close
Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
10 replies
97 views

I have a handler for AppDomain.CurrentDomain.UnhandledException that uses Async calls to write an error log file. Unfortunately, it returns to the source of the exception (which then shows the ...
Barbarian's user avatar
  • 257
-2 votes
0 answers
61 views

I am developing a .NET CLR profiler using the Profiling API (ICorProfilerCallback) and trying to track async thread switches caused by await. For Task.Run(), I can correlate scheduling and execution ...
vimalram k c's user avatar
Best practices
1 vote
5 replies
136 views

Why is Promise.all() faster than sequential await calls? Question I have two versions of a function. I understand that Promise.all() runs both requests in parallel, but I would like to know: how ...
Kerem Babo's user avatar
Advice
2 votes
7 replies
119 views

If I had multiple sockets to wait for information from, on a POSIX system I would use poll on multiple pollfd for POLLIN roughly as follows... struct pollfd pollFds[2] = {}; pollFd[0].fd = socket_0; ...
FLAK-ZOSO's user avatar
  • 4,183
Best practices
1 vote
2 replies
79 views

I am building a high-performance asynchronous zero copy parser in Rust. My goal is to read byte blocks from the underlying asynchronous reader into an internal buffer, parse them, and then generate ...
quanzhixian's user avatar
Best practices
0 votes
0 replies
68 views

For asyncio workloads there's this convenience function that executes passed list of asyncio.Tasks until either a timeout is hit; first Task raises an exception; or all tasks succeed First two ...
laur's user avatar
  • 607
0 votes
0 answers
98 views

I'm trying to interact with a custom S3 storage, but part of methods in AmazonS3Client hangs off. I found several posts with similar problems, but they didn't help me. Initially, I declared s3Client ...
Sergey's user avatar
  • 21
Best practices
0 votes
5 replies
126 views

I have this function called BulkCopyIntoTable which filters a datatable and based off the max integer of the table im inserting into and inserts data that is greater than that integer. I use the ...
Leslie Castelan Chavez's user avatar
Best practices
2 votes
17 replies
341 views

If every async method I need to return a Task and use await. Then I propagate the await to the caller, then all invoking methods have to be Async and use await? So if I have a method: async Task<...
Gustavo Baiocchi Costa's user avatar
Best practices
0 votes
4 replies
94 views

public async Task<IEnumerable<Patient>> GetWaitingPatientsAsync() { return await _context.Patients.AsNoTracking().Where(x => x.Status == PatientStatus.Waiting).ToListAsync(); } I ...
Yahya Mammadli's user avatar
Best practices
0 votes
0 replies
62 views

I want to test my aiogram bot using pytest. I have sqlalchemy orm and redis and I want to test my async handlers, but the problam that i don't know how to get message and other handler's dependencies (...
madjetmax's user avatar
Advice
0 votes
0 replies
158 views

It's interesting I didn't find anything specifically for this topic while browsing around. I would like to write a high performance application in rust and I'm wondering: What is the most performant ...
glades's user avatar
  • 5,472
0 votes
1 answer
188 views

I am writing a small cli application to learn rust and did start my error propagation with a lot of Result<_, Box<dyn std::error::Error>>. This is quite flexible and works nicely. Now I ...
Lucas's user avatar
  • 727
Best practices
2 votes
10 replies
254 views

Consider the following call chain: public class MainClass { // Lets say this is called from a front-end button click. public async SomeButtonClick() { await OtherClass....
Scott B's user avatar
  • 76
6 votes
0 answers
176 views

I have the following function, which is basically a wrapper around something that makes a SQL call and reshapes the results: public async IAsyncEnumerable<T> ExecuteTable<T>(string sql, ...
F. Polo's user avatar
  • 161

15 30 50 per page
1
2 3 4 5
1854