Deno on Nostr: #Deno now supports Node's built-in `AsyncLocalStorage` API. This means you can now ...
#Deno now supports Node's built-in `AsyncLocalStorage` API. This means you can now manage context across asynchronous operations.
Here's a simple example of tracking request IDs in an HTTP server:
Published at
2023-07-14 15:38:51Event JSON
{
"id": "a99e823febf961c58ebe6a8fcfd01cecec77ecbdaf9d192ca064bf3e6065ea55",
"pubkey": "68563c1237064a9a329fbba46397514bbe9213e05d90052931ce3151c97607f0",
"created_at": 1689349131,
"kind": 1,
"tags": [
[
"t",
"deno"
],
[
"mostr",
"https://fosstodon.org/users/deno_land/statuses/110713184689989040"
]
],
"content": "#Deno now supports Node's built-in `AsyncLocalStorage` API. This means you can now manage context across asynchronous operations. \n\nHere's a simple example of tracking request IDs in an HTTP server:\n\nhttps://cdn.fosstodon.org/media_attachments/files/110/713/184/362/322/614/original/3305f1ee0d35a8de.png",
"sig": "711f8024c3c44d834ce1821b043be7eb4bfc8541147bb0bf13ef1ab500192109309faed602407660c07951c59ba7f8548a3cb37f7e3bfa055a6bafa2d4e22007"
}