Autocomplete

I want to close the autocomplete , using close on blur but after a delay of 2 sec, how can I do this

Turn off closeOnBlur and add your own plugin that listen to blur events and, 2 seconds after they occur, if the editor hasn’t be refocused and completion is active, runs the closeCompletion command.