Meeting with Donald Trump to discuss technology is like drinking a whole bottle of gin and then being waterboarded, Twitter's former chief executive has claimed.

Mr Trump is reportedly planning to hold a second summit with leaders in the sector, plus venture capitalists and entrepreneurs, following an initial such encounter last December.

Dick Costolo, who headed Twitter between 2010 and 2015, tweeted: "If you don't get invited to this meeting and want to know what it was like, just drink a bottle of gin and then waterboard yourself."

Mr Trump has challenged leaders in the field over hiring, immigration and manufacturing in the past as a result of his "America first" policy.

And when he pulled the US out of the Paris climate accord earlier this month, Tesla chief executive Elon Musk stepped down from his advisory committee role in protest.

A number of Silicon Valley leaders spoke out against the withdrawal.

Mr Trump was criticised for allowing his children Ivanka, Don Jr and Eric to sit in on the first meeting, which took place before his inauguration.

Thousands march against Donald Trump in LGBT rights parade Show all 8 1 /8 Thousands march against Donald Trump in LGBT rights parade Thousands march against Donald Trump in LGBT rights parade A marcher hold a sign that reads "Love is Love is Love" on the National Mall with the Washington Monument in the background during the Equality March for Unity and Pride in Washington AP Thousands march against Donald Trump in LGBT rights parade Marchers unfurl a huge rainbow flag as they prepare to march in the Equality March for Unity and Pride in Washington AP Thousands march against Donald Trump in LGBT rights parade Marchers gather to hear speakers at the end of the Los Angeles LGBTQ #ResistMarch AP Thousands march against Donald Trump in LGBT rights parade Gil Mendez, of San Francisco, holds a sign to honor the victims of the shooting at the Pulse Nightclub in Orlando as he marches during the Equality March for Unity and Pride in Washington AP Thousands march against Donald Trump in LGBT rights parade An demonstrator looks on as LGBT members and their supporters take part of the Equality March for Unity AFP/Getty Images Thousands march against Donald Trump in LGBT rights parade A marcher listens to speakers at the end of the Los Angeles LGBTQ #ResistMarch AP Thousands march against Donald Trump in LGBT rights parade LGBT members and their supporters take part of the Equality March for Unity AFP/Getty Images Thousands march against Donald Trump in LGBT rights parade A marcher mugs for the camera during the Los Angeles LGBTQ #ResistMarch AP

It was attended by a who's-who of industry figures including Facebook's Sheryl Sandberg, Apple's Tim Cook, Jeff Bezos of Amazon, Microsoft chief Satya Nadella and Larry Page, of Google's parent company Alphabet.

The meeting had been chaired and organised by billionaire investor and Facebook board member Peter Thiel, as well as Mr Trump’s son-in-law, Jared Kushner.