This is not GitHub.com

Like what you see? Install OctoLinker now!

Skip to content
#

async

Here are 3,092 public repositories matching this topic...

ava
novemberborn
novemberborn commented Sep 15, 2019

#1947 landed a new t.try() assertion. It's experimental, one of the reasons for which is that we don't have documentation yet.

We need to document the assertion, how to use it and what the edge cases are.

Apologies for how bare this issue is — happy to elaborate more if you're looking to contribute this 😍

fastapi
vganin
vganin commented Nov 7, 2019

Dispatchers.Main.immediate forces child coroutine with Dispatchers.Unconfined interceptor to dispatch.

Example code

GlobalScope.launch(Dispatchers.Main.immediate) {
    GlobalScope.launch(Dispatchers.Unconfined) {
        println("$coroutineContext: before")
    }
    println("$coroutineContext: after")
}

This code prints

[CoroutineId(1), "coroutine#1":StandaloneCorou
ktor
saschpe
saschpe commented Aug 28, 2019

Subsystem
Locations

Is your feature request related to a problem? Please describe.
When writing a multiplatform frontend (i.e. Android, iOS) using ktor-client, one has to use strings for get() / update() / delete() calls to a (Ktor-based) backend. This is tedious and error-prone and replicates what had to tbe done for the backend.

Describe the solution you'd like
ktor-location

plaes
plaes commented Oct 15, 2019

Currently, documentation samples (at least for impl<T> FromRequest for Query<T>) is missing error handling example:
1) It should either link to actix_web::web::QueryConfig
2) or document an alternative way how to parse the query string yourself (there seems to be no easy way of extracting it from HttpRequest)

Conight
Conight commented Jun 22, 2018

here is official code about how to use components
url: https://docs.vibora.io/docs/components

from vibora import Vibora, Response
from vibora import Route
​
app = Vibora()
​
@app.route('/')
async def home(request: Request)
    current_route = request.get_component(Route)
    return Response(current_route.pattern.encode())

and i think following is correct

fr

Improve this page

Add a description, image, and links to the async topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the async topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.