Are you saying you don’t like any threads in the implementation? I don’t understand when you say “fundamental API” as there is. I way to call the thread via the public API
Tony > On May 24, 2019, at 3:50 PM, Xuelei Fan <xuelei....@oracle.com> wrote: > > I meant to avoid to use threads in the implementation of fundamental APIs. > > Xuelei > > On 5/24/2019 11:52 AM, Anthony Scarpino wrote: >>> I would like to avoid to create thread in the fundamental API >>> implementation if possible. As the thread (KeyState.run()) is for invalid >>> key cleanup only, the cleanup can be moved to the get methods. >> How is this thread in the API? It is only started when the key is generated >> and not by a API call and it's the internal parts of the implementation.