ddbc with Vibe-d
Steve
fakename at fakeaddress.com
Sun Feb 12 20:29:18 UTC 2023
On Sunday, 12 February 2023 at 19:38:47 UTC, Steven Schveighoffer
wrote:
> That might work, depending on args. As documented in the API,
> if anything in args are mutable references, then it is run as a
> task, and the same problem still applies (it will use a fiber,
> and count on the concurrency of vibe's fibers to deal with the
> asynchronicity).
>
> If it is possible, it will run in a worker thread, and then it
> can execute concurrently.
>
> I believe you can do:
>
> isWeaklyIsolated!(typeof(args))
>
> to see if it will run in another thread.
>
> I admit not having any experience with this function.
>
> -Steve
In my case args will just be the body of the HTTPServerRequest
which is JSON. How can I get that JSON and pass it to async() in
a manner that ensures I get a worker thread?
More information about the Digitalmars-d-learn
mailing list