hybriel
Decide whether a function becomes asynchronous only when it really waits for something
opened by Anton · assigned to Anton
opened · updated
Today every lambda in client.hl is asynchronous. Example from Arachne: window.__hlS = (v) => { return v == null ? '' : '' + v } used as S(x) inside a string gives "[object Promise]" instead of the text. A > call whose right side the compiler cannot see also makes the whole call chain asynchronous. This blocks Arachne's faster list painting and makes the output bigger.
My recommendation: yes, a function is asynchronous only when it waits for something (a fetch, a > to another process); everything else runs straight through, like plain JavaScript.
Question: only when it waits? (yes/no)
History
Anton opened the ticket Anton assigned the ticket to Caramboleyo Anton changed the state pending 1 comment
Anton changed the state open Anton assigned the ticket to Anton 2 comments
Anton Anton
Anton changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…