3 ms·
Go convention would be to pass a 'done' channel to myFunc and only close the db on receipt of a message on the channel.
by cratermoon 6y ago
Go convention would be to pass a 'done' channel to myFunc and only close the db on receipt of a message on the channel.