On 7/24/17 9:11 AM, George Neuner wrote:
Hi David,
On 7/24/2017 8:18 AM, David Storrs wrote:
What happens in the following code?
(define dbh (postgresql-connect ...))
;; Use the DBH in a new thread
(thread (thunk
(while ...some long-running condition...
(sleep 1) ; don't flood the DB
On Mon, Jul 24, 2017 at 9:11 AM, George Neuner wrote:
> Hi David,
>
> On 7/24/2017 8:18 AM, David Storrs wrote:
>
> What happens in the following code?
>
> (define dbh (postgresql-connect ...))
>
> ;; Use the DBH in a new thread
> (thread (thunk
> (while ...some long-running condition...
>
Hi David,
On 7/24/2017 8:18 AM, David Storrs wrote:
What happens in the following code?
(define dbh (postgresql-connect ...))
;; Use the DBH in a new thread
(thread (thunk
(while ...some long-running condition...
(sleep 1) ; don't flood the DB
(query-exec dbh "insert into users ...")
What happens in the following code?
(define dbh (postgresql-connect ...))
;; Use the DBH in a new thread
(thread (thunk
(while ...some long-running condition...
(sleep 1) ; don't flood the DB
(query-exec dbh "insert into users ..."
;; And in the main thread
(query-exec dbh ...)
I
4 matches
Mail list logo