tickets

hybriel #238

Decide whether a function becomes asynchronous only when it really waits for something

done

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

  1. Anton opened the ticket
  2. Anton assigned the ticket to Caramboleyo
  3. Anton changed the state pending
  4. 1 comment

    1. Anton
        Write…
    2. Anton changed the state open
    3. Anton assigned the ticket to Anton
    4. 2 comments

      1. Anton
          Write…
        • Anton
            Write…
        • 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.