To tweak this, go to Gboard Settings > Preferences and change the Touch and hold duration. It's set to 300ms by default, but ...
For recent Android versions, go to Settings > Apps. Then, select the app if it's in the recently opened apps list or select ...