[3] [[Web IDL]] の [DFN[[CODE(IDL)@en[[[VoidFunction]]]]]] は、
[[引数]]も返す値もない[[コールバック関数]]を表す[[型]]です。

* 仕様書

[REFS[
- [1] [CITE[Web IDL (Second Edition)]] ([TIME[2015-05-27 01:29:33 +09:00]] 版) <http://heycam.github.io/webidl/#common-VoidFunction>
]REFS]

* 意味

[2] [CODE(IDL)@en[[[VoidFunction]]]] は、[[引数]]がなく、値を返さない ([CODE(IDL)@en[[[void]]]])
[[コールバック関数]]です [SRC[>>1]]。

* 文脈

[FIG(short list)[ [7] [CODE[VoidFunction]] の用例
- [CODE[queueMicrotask]]
]FIG]

* 歴史

[4] [CITE@en['''['''css-paint-api''']''' Remove VoidFunction.]]
([[bfgeek]]著, [TIME[2017-01-04 08:30:15 +09:00]])
<https://github.com/w3c/css-houdini-drafts/commit/75cd597c6a2bf52413778d27ef149524f0ec1540>

[5] [CITE@en[Editorial: use VoidFunction instead of Function in queueMicrotask()]]
([[yuki3]]著, [TIME[2018-09-12 23:04:29 +09:00]])
<https://github.com/whatwg/html/commit/e000f5e3656be9d0bd252ae55151f2be028687df>

[6] [CITE@en[Change the callback type of queueMicrotask from Function to VoidFunction by yuki3 · Pull Request #4027 · whatwg/html]]
([TIME[2018-10-17 22:04:48 +09:00]])
<https://github.com/whatwg/html/pull/4027>