Description Usage Arguments Value See Also Examples
Get the timeout value for network operations on a mongo connection.
1 |
mongo |
(mongo) a mongo connection object. |
(integer) timeout value in milliseconds.
mongo.set.timeout
,
mongo.create
,
mongo.
1 2 3 4 5 6 7 | mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
mongo.set.timeout(mongo, 2000L)
timeout <- mongo.get.timeout(mongo)
if (timeout != 2000L)
error("expected timeout of 2000");
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.