async
Here are 3,518 public repositories matching this topic...
Consider this example for map
async.map(['file1','file2','file3'], fs.stat, function(err, results) {
// results is now an array of stats for each file
});
This basically tells me nothing except syntax. In most cases people aren't going to pass fs.stat
. The examples should include use of all possible options. All examples for all functions and methods need to be updated. They
Spurred by conversation in avajs/ava#2449 and avajs/ava#1485 we'd like for our assertions to return booleans. true
when they pass, false
when they fail. This does not apply to the throws()
and throwsAsync()
assertions.
Failing assertions will fail the test, but do not throw exceptions. This means your test does not stop executing. Usua
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error.
read Chinese and English documentation
- What did you expect to see?
I expected to find best practice for production usage
- What did you see instead?
nothing
- What version of Swoole are you using (
php --ri swoole
)?
latest.
-
Updated
May 18, 2020 - JavaScript
Is your feature request related to a problem
Coming from this issue: tiangolo/fastapi#817
The docs have some sections with functions using *,
in the parameters.
It is explained here: https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#order-the-parameters-as-you-need-tricks
But in other sections like: https://fastapi.tiangolo.com/tutor
Long story short
Regression of #1188
Expected behaviour
Tests pass on armv7l
Actual behaviour
Test run fails at test_cookiejar.py:383: OverflowError
Steps to reproduce
Run tests
Your environment
linux 4.19
nixos 20.03
arm v7l
python 3.7
aiohttp client-3.6.2
Log
ts_before = datetime.datetime(
1975, 1, 1, tzinfo=datetim
The feature list on the documentation is wrong. It refers to a missing feature. See at:
https://github.com/actix/actix-web/blob/206733188478f4d18df376a72fac3a4938b99bd6/src/lib.rs#L79
I found that when looking for a way to disable to client build.
It would be great if it were clarified in https://github.com/JetBrains/kotlin-native/blob/master/CONCURRENCY.md that any time an object is referenced by two functions that can change the coroutine context (eg async, launch, withContext, suspending function) that the object will be frozen. It'd be helpful to drive home the point by showing an example where the coroutine is executed on a single thr
There's the easy way, which is just to document job.requeue()
on the jobs documentation page:
https://github.com/rq/rq/blob/master/rq/job.py#L527
I could be wrong, but I don't think that (super important) method is actually documented anywhere! I found it by searching the Github issues.
And there's the hard way, which would be to provide this information with a full example of u
-
Updated
May 19, 2020 - Python
Subsystem
Kotlin multiplatform library: ktor-client-logging:1.3.0
Is your feature request related to a problem? Please describe.
Problem: not able to filter calls to be logged. All calls are being logged by default.
Describe the solution you'd like
Add a filter option in Logging configuration block (this solution is available on Android in CallLogging feature, but it is absent
I believe that libevent has a dependency on OpenSSL (found this here). However, this isn't documented anywhere on the README and the lack of specifics here created a problem with my install on Windows 10. Steps to repro:
git clone https://github.com/libevent/libevent.git
mkdir libevent/.build
cd libevent/.build
cma
Describe the bug
Docs never mention that Vibora searches for a folder named templates
, additionally template rendering varies depending on where from you execute the file.
To Reproduce
Given the following folder structure:
.
├── project1
│ ├── app.py
│ └── templates
│ └── index.html
When Vibora is run from root folder like so python3 project1/app.py
it wo
Memory management in a seastar application is a very important topic, as seastar applications are usually long running server applications that want to maximize the usage of memory as well as be resilient to memory fragmentation.
Add a section on this to the docs/tutorial.md
based on the lessons we learned at ScyllaDB. In a nutshell: when large buffers are needed prefer storing data in a chunke
The links on the FAQ page in the wiki still point to the old wiki, which seems to be deprecated.
In the docs about supporting binary messages, it is stated that the controller should implement Ratchet\WebSocket\MessageComponentInterface
.
However, if using Ratchet\App
, when adding a new route with this controller, the WsServer
is not created, since the [`$controller instanceof MessageComponentInterfa
Since a lot of the categories have many libraries listed, it would be helpful to highlight the top 2-4 "must use" libraries in each category, if appropriate.
I should figure out how to format this, and which ones I want to highlight.
The "routing" docs page doesn't mention that Route()
is for HTTP only and WebSocketRoute()
is required for websocket endpoints. I found WebSocketRoute
through examples on other pages but it woudl be good if it was fully described on the "routing" page.
Stitching API
Opencv provide a Stitching module/API
Bascially, i would like to be able to rewrite stitching_detailed.cpp in javascript
This includes :
- Stitcher class
- Features extractors (already implemented in opencv4nodejs)
- Estimator
Currently in our docs for open_signal_receiver
, we have an example of catching SIGHUP and using it to reload the application configuration. While talking to @wgwz today re: python-trio/snekomatic#41, I discovered that this example is maybe not so great, because readers who aren't already steeped in Unix tr
-
Updated
Apr 19, 2020
developer guide: development note for Middleware Engineering
- why need Middleware Engineering
- how to do it
Middleware Engineering
🔥 , like multi-version Java full support(support low version Java and full functions of high version Java), is boring but essential for middleware!🤣 https://github.com/alibaba/transmittable-thread-local/releases/tag/v2.5.0
I am struggling to test a verticle isolated and all documentation and examples found only show how to test rest endpoints.
Something as simple as this, always fails with timeout
@Rule
public RunTestOnContext rule = new RunTestOnContext();
@Rule
public Timeout timeout = Timeout.seconds(5L);
@Test
public void should_run_verticle(TestContext context) {
Hey,
Has any thought been given to supporting phpstan/psalm generics e.g.
class Foo
{
/**
* @return Promise<MyDomainThing>
*/
public function wait(): Promise { // ... }
}
Otherewise, what's the best way to document a Promise that's compatible with SA tools?
Psalm has some stubs for Amp: https://github.com/vimeo/psalm/blob/master/src/Psalm/Internal/S
-
Updated
Apr 24, 2020 - JavaScript
Improve this page
Add a description, image, and links to the async topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the async topic, visit your repo's landing page and select "manage topics."
Update various parts of the text.
There's no such thing as "early ReferenceError" anymore (for things like
0++
); they're all just "early SyntaxError" now. tc39/ecma262#691