hsim on Nostr: Race condition. Caused by the log line actually waiting on a lock on a common shared ...
Published at
2023-05-20 04:05:25Event JSON
{
"id": "4b651f3e6942225f8478f35dc61741de4542aacae79fa91bf018dacb591a319f",
"pubkey": "b8c85be89f697ebcd0ff6df6c7c28bbb461ebb2b2b1f0e0a3aa433a5f8484f8f",
"created_at": 1684555525,
"kind": 1,
"tags": [
[
"e",
"7d8401e35d9699edbef0d45f161605442440da6c2b3334785900b349c69f68aa"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "Race condition.\n\nCaused by the log line actually waiting on a lock on a common shared resource like the stdout stream. Thus acting like a kind of micro sleep.\n\nRelated article for nodejs folks: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick#processnexttick-vs-setimmediate",
"sig": "66c7a41167267a0efb4ed4f3ccf799d02f1b0c59f0302048d3a13efc779ed4bd8a92bc7bc19db8770d1202c21250dc830b634e684b6793ada3642e16a31c9497"
}