<i>documentation improvement: "after 0 cmd"</i> status still Open with 3 other changes
by
.
D 2022-08-18T11:19:13.970
J icomment >\s*"after\s0\scmd"\sputs\sthe\scommand\sin\sfront\sof\sthe\sevent\squeue.\sOther\salready\sregistered\sevents\swill\srun\safter\sthis\sevent.*\r\n\r\nThis\sis\snot\squite\scorrect.\sBasically\swhen\sadding\sto\sthe\squeue\sit\sconsiders\sother\stimers\sthere,\sso\sin\scase\sother\sevents\swith\s0\sare\salready\savailable,\sit\swould\sadd\snew\sevent\safter\sthem\sand\snot\sin\shead\sof\sthe\squeue.\sAlso\sit\sis\simportant\sto\sconsider\sthe\s"epoch"\sof\sevent\s(an\sevent\screated\sduring\sevaluation\sof\sanother\sevent\swill\sbe\sexecuted\sfirstly\sby\sthe\snext\sround\sof\sevent\scycle\sevaluation).\r\n\r\nNegative\soffset\sis\sthe\ssame\sas\s0.\r\n\r\nRegarding\s`after\sidle\s[list\safter\s0\sdoOneStep]`,\sit\swill\sguarantee\sthat\s`doOneStep`\swill\sbe\sevaluated\sin\sthe\ssecond\sround\sof\sevent\scycle,\sbut\sfirstly\safter\sthe\sidle\sround\swas\sdone\stoo.\sIt\sis\sa\skind\sof\sretarding\sof\sevents\s(surely\snot\sthe\sbest\sone)\seither\sbecause\sof\sthe\snested\s`update`s\ssomewhere\sor\sbecause\sof\smissing\sfilter\sfunctionality\sby\s`update`\sor\s`vwait`\s(e.\sg.\simpossibility\sto\sinvoke\s`update\s-timer`\sor\s`update\s-noidle`\slike\simplemented\sin\sRFE\s[fdfbd5e10](./tktview?name=fdfbd5e10)).\r\nFundamentally\salthough\sit\scan\sbe\shelpful\ssometimes,\sbut\smay\sbe\sa\sbit\sworse\sconcept\sto\srely\son\stimers\sin\sthis\sway.\sIt\scould\sbe\ssometimes\salso\sa\ssign\sthat\sa\scode\sdoesn't\sregister\sor\shandle\sevents\scorrectly\s(instead\sof\scount\son\ssome\sstate\sit\strust\sin\sa\stime-related\sevaluation).
J login sebres
J mimetype text/x-markdown
K a11678b75917f88a53e22d487728a35367356e56
U sebres
Z 0846b9e8fd68416a880fcf6b2bbec101