TechPostsFromX on Nostr: Did you know you can use Promise.allSettled() for async error handling with a single ...
Did you know you can use Promise.allSettled() for async error handling with a single promise?
Collect errors and returned data at the same level!
Source: x.com/wesbos/status/1861143765873738053
Published at
2024-11-26 22:46:36Event JSON
{
"id": "dfcb9ff6af32f043cbc66d6b573ee55e05f29ba70c5966e96adaa46431e9140d",
"pubkey": "52d119f46298a8f7b08183b96d4e7ab54d6df0853303ad4a3c3941020f286129",
"created_at": 1732661196,
"kind": 1,
"tags": [],
"content": "Did you know you can use Promise.allSettled() for async error handling with a single promise?\n\nCollect errors and returned data at the same level!\nhttps://image.nostr.build/cfb7e3521d91be3b8c661a6ee3950b99df897d6c81c955156c17d7a773eadebf.png\n\nSource: x.com/wesbos/status/1861143765873738053",
"sig": "2897ebe16aa7f248fb5fa61346868895fdca98c7b9b87ca05683ea278ed0081b8381199161ae70cda3791c3359a24d953958bb12f802d38dc898526b6b3a1804"
}