[Vaadin14][Cookies] cannot read cookies from other threads

Vaadin 14, in order to get browser’s cookies:

Cookie[] cookies = VaadinService.getCurrentRequest().getCookies();

However this method only allows to call in Main Views.
It cannot access from other threads. Say if we need a timer to keep reading cookies, this is impossible.

Any way to overcome this problem ?