mike dupont
sig
f289002
[
{
"psig_desc": [
"Psig_attribute",
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.text"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" External resource pools.\n\n This module provides an abstraction for managing collections of resources.\n One example use case is for managing a pool of database connections, where\n instead of establishing a new connection each time you need one (which is\n expensive), you can keep a pool of opened connections and reuse ones that\n are free.\n\n It also provides the capability of:\n - specifying the maximum number of resources that the pool can manage\n simultaneously,\n - checking whether a resource is still valid before/after use, and\n - performing cleanup logic before dropping a resource.\n\n The following example illustrates how it is used with an imaginary\n [Db] module:\n\n {[\nlet uri = \"postgresql://localhost:5432\"\n\n(* Create a database connection pool with max size of 10. *)\nlet pool =\n Lwt_pool.create 10\n ~dispose:(fun connection -> Db.close connection |> Lwt.return)\n (fun () -> Db.connect uri |> Lwt.return)\n\n(* Use the pool in queries. *)\nlet create_user name =\n Lwt_pool.use pool (fun connection ->\n connection\n |> Db.insert \"users\" [(\"name\", name)]\n |> Lwt.return\n )\n]}\n\n Note that this is {e not} intended to keep a pool of system threads.\n If you want to have such pool, consider using {!Lwt_preemptive}. ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 6,
"pos_bol": 162,
"pos_cnum": 162
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 42,
"pos_bol": 1388,
"pos_cnum": 1459
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 6,
"pos_bol": 162,
"pos_cnum": 162
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 42,
"pos_bol": 1388,
"pos_cnum": 1459
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 6,
"pos_bol": 162,
"pos_cnum": 162
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 42,
"pos_bol": 1388,
"pos_cnum": 1459
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 6,
"pos_bol": 162,
"pos_cnum": 162
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 42,
"pos_bol": 1388,
"pos_cnum": 1459
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 6,
"pos_bol": 162,
"pos_cnum": 162
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 42,
"pos_bol": 1388,
"pos_cnum": 1459
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_type",
[ "Recursive" ],
[
{
"ptype_name": {
"loc2": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1469
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1470
},
"loc_ghost": false
},
"txt2": "t"
},
"ptype_params": [
[
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1466
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1468
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
[ [ "NoVariance" ], [ "NoInjectivity" ] ]
]
],
"ptype_cstrs": [],
"ptype_kind": [ "Ptype_abstract" ],
"ptype_private": [ "Public" ],
"ptype_manifest": null,
"ptype_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" A pool containing elements of type ['a]. ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1473
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1520
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1473
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1520
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1473
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1520
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1473
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 45,
"pos_bol": 1471,
"pos_cnum": 1520
},
"loc_ghost": false
}
}
],
"ptype_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1461
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1470
},
"loc_ghost": false
}
}
]
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1461
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 44,
"pos_bol": 1461,
"pos_cnum": 1470
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 47,
"pos_bol": 1522,
"pos_cnum": 1526
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 47,
"pos_bol": 1522,
"pos_cnum": 1532
},
"loc_ghost": false
},
"txt2": "create"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "int", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 48,
"pos_bol": 1535,
"pos_cnum": 1537
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 48,
"pos_bol": 1535,
"pos_cnum": 1540
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Optional", "validate" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1559
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1561
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [ "Ptyp_constr", "bool", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1565
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1569
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1565
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1575
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1559
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1575
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Optional", "check" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1592
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1594
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "bool", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1599
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1603
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1607
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1611
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1599
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1611
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1616
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1620
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1598
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1620
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1592
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1620
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Optional", "dispose" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1639
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1641
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [
"Ptyp_constr", "unit", []
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1645
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1649
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1645
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1655
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1639
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1655
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1663
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1667
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1671
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1673
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1671
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1679
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1663
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1679
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"t",
[
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1684
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1686
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1684
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1662
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 51,
"pos_bol": 1625,
"pos_cnum": 1627
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 50,
"pos_bol": 1580,
"pos_cnum": 1582
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 49,
"pos_bol": 1544,
"pos_cnum": 1546
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 48,
"pos_bol": 1535,
"pos_cnum": 1537
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [create n ?check ?validate ?dispose f] creates a new pool with at most\n [n] elements. [f] is used to create a new pool element. Elements are\n created on demand and re-used until disposed of.\n\n @param validate is called each time a pool element is accessed by {!use},\n before the element is provided to {!use}'s callback. If\n [validate element] resolves to [true] the element is considered valid and\n is passed to the callback for use as-is. If [validate element] resolves\n to [false] the tested pool element is passed to [dispose] then dropped,\n with a new one is created to take [element]'s place in the pool.\n [validate] is available since Lwt 3.2.0.\n\n @param check is called after the resolution of {!use}'s callback when the\n resolution is a failed promise. [check element is_ok] must call [is_ok]\n exactly once with [true] if [element] is still valid and [false]\n otherwise. If [check] calls [is_ok false] then [dispose] will be run\n on [element] and the element will not be returned to the pool.\n\n @param dispose is used as described above and by {!clear} to dispose of\n all elements in a pool. [dispose] is {b not} guaranteed to be called on\n the elements in a pool when the pool is garbage collected. {!clear}\n should be used if the elements of the pool need to be explicitly disposed\n of. ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 53,
"pos_bol": 1689,
"pos_cnum": 1691
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 75,
"pos_bol": 3085,
"pos_cnum": 3097
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 53,
"pos_bol": 1689,
"pos_cnum": 1691
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 75,
"pos_bol": 3085,
"pos_cnum": 3097
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 53,
"pos_bol": 1689,
"pos_cnum": 1691
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 75,
"pos_bol": 3085,
"pos_cnum": 3097
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 53,
"pos_bol": 1689,
"pos_cnum": 1691
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 75,
"pos_bol": 3085,
"pos_cnum": 3097
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 47,
"pos_bol": 1522,
"pos_cnum": 1522
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 47,
"pos_bol": 1522,
"pos_cnum": 1522
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 52,
"pos_bol": 1660,
"pos_cnum": 1688
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3103
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3106
},
"loc_ghost": false
},
"txt2": "use"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_constr",
"t",
[
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3109
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3111
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3109
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3113
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3118
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3120
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [ "Ptyp_var", "b" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3124
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3126
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3124
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3132
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3118
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3132
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [ "Ptyp_var", "b" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3137
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3139
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3137
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3145
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3117
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3145
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3109
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3145
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [use p f] requests one free element of the pool [p] and gives it to\n the function [f]. The element is put back into the pool after the\n promise created by [f] completes.\n\n In the case that [p] is exhausted and the maximum number of elements\n is reached, [use] will wait until one becomes free. ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 78,
"pos_bol": 3146,
"pos_cnum": 3148
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 83,
"pos_bol": 3408,
"pos_cnum": 3468
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 78,
"pos_bol": 3146,
"pos_cnum": 3148
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 83,
"pos_bol": 3408,
"pos_cnum": 3468
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 78,
"pos_bol": 3146,
"pos_cnum": 3148
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 83,
"pos_bol": 3408,
"pos_cnum": 3468
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 78,
"pos_bol": 3146,
"pos_cnum": 3148
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 83,
"pos_bol": 3408,
"pos_cnum": 3468
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3099
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3145
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3099
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 77,
"pos_bol": 3099,
"pos_cnum": 3145
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3474
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3479
},
"loc_ghost": false
},
"txt2": "clear"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_constr",
"t",
[
{
"ptyp_desc": [ "Ptyp_var", "a" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3482
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3484
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3482
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3486
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [
"Ptyp_constr",
"Lwtt",
[
{
"ptyp_desc": [ "Ptyp_constr", "unit", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3490
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3494
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3490
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3500
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3482
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3500
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [clear p] will clear all elements in [p], calling the [dispose] function\n associated with [p] on each of the cleared elements. Any elements from [p]\n which are currently in use will be disposed of once they are released.\n\n The next call to [use p] after [clear p] guarantees a freshly created pool\n element.\n\n Disposals are performed sequentially in an undefined order.\n\n @since 3.2.0 ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 86,
"pos_bol": 3501,
"pos_cnum": 3501
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 95,
"pos_bol": 3892,
"pos_cnum": 3911
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 86,
"pos_bol": 3501,
"pos_cnum": 3501
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 95,
"pos_bol": 3892,
"pos_cnum": 3911
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 86,
"pos_bol": 3501,
"pos_cnum": 3501
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 95,
"pos_bol": 3892,
"pos_cnum": 3911
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 86,
"pos_bol": 3501,
"pos_cnum": 3501
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 95,
"pos_bol": 3892,
"pos_cnum": 3911
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3470
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3500
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3470
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 85,
"pos_bol": 3470,
"pos_cnum": 3500
},
"loc_ghost": false
}
},
{
"psig_desc": [
"Psig_value",
{
"pval_name": {
"loc2": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3917
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3934
},
"loc_ghost": false
},
"txt2": "wait_queue_length"
},
"pval_type": {
"ptyp_desc": [
"Ptyp_arrow",
[ "Nolabel" ],
{
"ptyp_desc": [
"Ptyp_constr",
"t",
[
{
"ptyp_desc": [ "Ptyp_any" ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3937
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3938
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
]
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3937
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3940
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
{
"ptyp_desc": [ "Ptyp_constr", "int", [] ],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3944
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3947
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
}
],
"ptyp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3937
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3947
},
"loc_ghost": false
},
"ptyp_loc_stack": [],
"ptyp_attributes": []
},
"pval_prim": [],
"pval_attributes": [
{
"attr_name": {
"loc2": {
"loc_start": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_end": {
"pos_fname": "_none_",
"pos_lnum": 0,
"pos_bol": 0,
"pos_cnum": -1
},
"loc_ghost": true
},
"txt2": "ocaml.doc"
},
"attr_payload": [
"PStr",
[
{
"pstr_desc": [
"Pstr_eval",
{
"pexp_desc": [
"Pexp_constant",
[
"Pconst_string",
" [wait_queue_length p] returns the number of {!use} requests currently\n waiting for an element of the pool [p] to become available.\n\n @since 3.2.0 ",
{
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 98,
"pos_bol": 3948,
"pos_cnum": 3948
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 101,
"pos_bol": 4087,
"pos_cnum": 4106
},
"loc_ghost": false
},
null
]
],
"pexp_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 98,
"pos_bol": 3948,
"pos_cnum": 3948
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 101,
"pos_bol": 4087,
"pos_cnum": 4106
},
"loc_ghost": false
},
"pexp_loc_stack": [],
"pexp_attributes": []
},
[]
],
"pstr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 98,
"pos_bol": 3948,
"pos_cnum": 3948
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 101,
"pos_bol": 4087,
"pos_cnum": 4106
},
"loc_ghost": false
}
}
]
],
"attr_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 98,
"pos_bol": 3948,
"pos_cnum": 3948
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 101,
"pos_bol": 4087,
"pos_cnum": 4106
},
"loc_ghost": false
}
}
],
"pval_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3913
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3947
},
"loc_ghost": false
}
}
],
"psig_loc": {
"loc_start": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3913
},
"loc_end": {
"pos_fname": "./_opam/lib/lwt/lwt_pool.mli",
"pos_lnum": 97,
"pos_bol": 3913,
"pos_cnum": 3947
},
"loc_ghost": false
}
}
]