package lwt

  1. Overview
  2. No Docs

Description

A promise is a value that may become determined in the future.

Lwt provides typed, composable promises. Promises that are resolved by I/O are resolved by Lwt in parallel.

Meanwhile, OCaml code, including code creating and waiting on promises, runs in a single thread by default. This reduces the need for locks or other synchronization primitives. Code can be run in parallel on an opt-in basis.

Published: 08 Mar 2018

Dependencies (7)

  1. result
  2. ppx_tools_versioned >= "5.0.1"
  3. ocaml-migrate-parsetree < "2.0.0"
  4. ocamlfind build & >= "1.7.3-1"
  5. jbuilder >= "1.0+beta14"
  6. cppo build & >= "1.1.0"
  7. ocaml >= "4.02.0" & < "4.08.0"

Dev Dependencies

None

  1. 0install >= "2.14"
  2. albatross
  3. alcotest-lwt
  4. alcotest-mirage
  5. ambient-context-lwt
  6. amqp-client >= "0.9.0" & < "1.0.2" | >= "1.1.0"
  7. amqp-client-lwt
  8. angstrom-lwt-unix
  9. anthill
  10. anycache-lwt
  11. arakoon < "1.8.6" | >= "1.8.8"
  12. archi-lwt
  13. arp >= "2.3.1"
  14. arp-mirage
  15. awa-lwt
  16. awa-mirage < "0.2.0"
  17. aws < "1.0.0"
  18. aws-s3-lwt
  19. awsm-lwt
  20. azure-cosmos-db
  21. baardskeerder
  22. balancer
  23. bap < "1.0.0"
  24. bap-server < "0.3.0"
  25. bimage-lwt
  26. biocaml = "0.4.0"
  27. bistro
  28. brotli < "1.2.0"
  29. brozip
  30. builder
  31. bun >= "0.3.3"
  32. c3
  33. calculon
  34. camltc
  35. canary
  36. capnp-rpc-lwt < "1.2.3"
  37. capnp-rpc-unix >= "0.9.0" & < "1.2.3"
  38. caqti-lwt < "2.0.1"
  39. carton-git
  40. carton-lwt
  41. cf-lwt
  42. channel
  43. charrua-client-lwt < "1.2.0"
  44. charrua-client-mirage < "1.2.0"
  45. charrua-core < "0.3"
  46. charrua-unix >= "0.3" & < "0.11.0" | >= "0.11.2"
  47. cmdtui-lambda-term
  48. coclobas
  49. cohttp-lwt < "6.0.0~alpha2"
  50. cohttp-lwt-jsoo
  51. cohttp-lwt-unix
  52. cohttp-lwt-unix-nossl
  53. cohttp-lwt-unix-ssl
  54. cohttp-mirage
  55. comby
  56. comby-semantic
  57. conan-lwt
  58. conduit-lwt
  59. conduit-lwt-unix
  60. core-lwt = "0.2.0"
  61. cowabloga >= "0.2.2"
  62. crunch >= "2.0.0"
  63. cstruct-lwt
  64. csv-lwt
  65. csvprovider
  66. ctypes >= "0.6.0" & < "0.21.1"
  67. ctypes-foreign >= "0.21.1"
  68. curly < "0.2.0"
  69. current_docker < "0.6.4"
  70. current_examples < "0.6.4"
  71. current_git < "0.6.4"
  72. current_github < "0.6.4"
  73. current_gitlab < "0.6.4"
  74. current_ocluster < "0.2"
  75. current_slack < "0.6.4"
  76. current_web < "0.6.4"
  77. DkSDKFFIOCaml_Std
  78. dap
  79. data-encoding < "0.1.1"
  80. datakit
  81. datakit-bridge-github
  82. datakit-bridge-local-git
  83. datakit-ci
  84. datakit-client >= "0.11.0"
  85. datakit-github
  86. datakit-server
  87. devkit
  88. dht < "0.2.0"
  89. distributed = "0.4.0"
  90. distributed-lwt
  91. dkim-mirage
  92. dns >= "0.19.1" & < "1.0.0"
  93. dns-forward >= "0.9.0"
  94. dns-forward-lwt-unix
  95. dns-lwt
  96. dnssd
  97. docker_hub
  98. dream
  99. dream-httpaf
  100. dream-pure
  101. dropbox
  102. dune_watch
  103. earlybird < "1.0.0"
  104. elasticsearch-cli
  105. eliom = "6.3.0"
  106. eris-lwt
  107. ethernet
  108. ezcurl-lwt
  109. ezirmin
  110. ezjsonm >= "0.4.2" & < "0.5.0"
  111. ezjsonm-lwt
  112. ezresto
  113. ezresto-directory
  114. faraday-lwt
  115. faraday-lwt-unix
  116. fat-filesystem >= "0.12.0"
  117. fiber-lwt
  118. flowtype >= "0.62.0"
  119. frenetic < "2.0.0"
  120. fswatch_lwt
  121. gamepad
  122. gdb
  123. gdbprofiler
  124. git != "1.4.3" & != "1.7.2"
  125. git-paf
  126. git-unix = "1.11.1" | >= "3.0.0" & < "3.10.0"
  127. github
  128. github-hooks
  129. github-unix >= "4.4.0"
  130. gitlab-unix
  131. gluten-lwt < "0.4.0"
  132. gluten-lwt-unix < "0.4.0"
  133. gluten-mirage < "0.4.0"
  134. graphql-lwt
  135. gufo
  136. h2-lwt < "0.10.0"
  137. h2-lwt-unix < "0.10.0"
  138. h2-mirage
  139. happy-eyeballs-lwt
  140. happy-eyeballs-mirage
  141. hardcaml < "1.1.0"
  142. hardcaml-examples >= "0.3.0"
  143. hardcaml-framework
  144. hardcaml-waveterm
  145. hiredis
  146. horned_worm < "0.3.1"
  147. http-lwt-client
  148. http-multipart-formdata >= "2.0.0" & < "3.0.0"
  149. http2https
  150. httpaf-lwt-unix
  151. hvsock
  152. i3ipc
  153. imaplet-lwt
  154. influxdb-lwt
  155. inotify >= "2.4"
  156. inquire < "0.3.0"
  157. iocaml < "0.4.6"
  158. iocaml-kernel >= "0.4.3"
  159. iocamljs-kernel
  160. ip2location
  161. ip2locationio
  162. ipv6-multicast < "0.9"
  163. ipv6-multicast-lwt
  164. irc-client-lwt
  165. irc-client-lwt-ssl
  166. irc-client-tls
  167. irmin < "0.9.6" | = "0.9.10" | >= "0.11.0" & < "2.7.0"
  168. irmin-bench < "2.7.0"
  169. irmin-chunk < "2.7.0"
  170. irmin-containers < "2.7.0"
  171. irmin-fs >= "2.3.0" & < "2.7.0"
  172. irmin-git >= "2.3.0" & < "2.7.0"
  173. irmin-graphql >= "2.3.0" & < "2.7.0"
  174. irmin-http >= "2.3.0" & < "2.7.0"
  175. irmin-indexeddb
  176. irmin-layers < "2.7.0"
  177. irmin-mem >= "2.3.0"
  178. irmin-mirage-git >= "2.3.0" & < "2.7.0"
  179. irmin-mirage-graphql >= "2.3.0" & < "2.7.0"
  180. irmin-pack < "2.7.0"
  181. irmin-test >= "2.3.0" & < "2.7.0"
  182. irmin-unix >= "2.3.0" & < "2.7.0"
  183. irmin-watcher
  184. jitsu
  185. joolog
  186. jose < "0.9.0"
  187. js_of_ocaml < "3.0"
  188. js_of_ocaml-lwt
  189. jsoo_broadcastchannel
  190. jsoo_router
  191. jsoo_storage
  192. jupyter < "2.3.0"
  193. jupyter-archimedes < "2.3.2"
  194. jupyter-kernel
  195. KaSim >= "4.0.0"
  196. kafka >= "0.3" & < "0.5"
  197. kafka_lwt
  198. ke >= "0.5"
  199. ketrew >= "3.2.0"
  200. kinetic-client
  201. kubecaml
  202. lablqml < "0.6"
  203. lambda-runtime
  204. lambda-term >= "1.11" & < "1.13"
  205. launchd
  206. learn-ocaml < "0.13.0"
  207. learn-ocaml-client < "0.13.0"
  208. letsencrypt
  209. letsencrypt-app
  210. letsencrypt-dns
  211. libres3
  212. links < "0.9.5"
  213. lwt-binio
  214. lwt-canceler
  215. lwt-dllist
  216. lwt-exit
  217. lwt-parallel >= "0.1.2"
  218. lwt-pipe
  219. lwt-pipeline
  220. lwt-watcher
  221. lwt-zmq
  222. lwt_camlp4
  223. lwt_domain < "0.3.0"
  224. lwt_eio < "0.4"
  225. lwt_glib >= "1.0.1"
  226. lwt_log < "1.1.0"
  227. lwt_named_threads
  228. lwt_ppx
  229. lwt_ppx_let
  230. lwt_react >= "1.0.1"
  231. lwt_ssl >= "1.0.1"
  232. macaque_lwt
  233. maki
  234. mariadb < "0.5.1"
  235. markup = "0.7.6"
  236. markup-lwt
  237. mbr-format >= "1.0.0"
  238. mdx
  239. mechaml
  240. metrics-influx
  241. metrics-lwt
  242. metrics-mirage
  243. metrics-unix
  244. mindstorm-lwt
  245. mirage < "0.9.1" | >= "0.10.0" & < "2.7.0"
  246. mirage-block < "1.0.0"
  247. mirage-block-ccm
  248. mirage-block-lwt
  249. mirage-block-ramdisk
  250. mirage-block-solo5
  251. mirage-block-unix < "2.8.3"
  252. mirage-block-xen
  253. mirage-bootvar-solo5 >= "0.2.0"
  254. mirage-bootvar-unix
  255. mirage-bootvar-xen >= "0.4.0"
  256. mirage-channel-lwt
  257. mirage-clock-freestanding < "3.0.0"
  258. mirage-clock-lwt
  259. mirage-clock-unix >= "1.2.0" & < "3.0.0"
  260. mirage-console >= "2.1.1" & < "2.2.0"
  261. mirage-console-lwt
  262. mirage-console-solo5 >= "0.2.0"
  263. mirage-console-unix >= "2.2.0" & < "3.0.0"
  264. mirage-console-xen >= "5.0.0"
  265. mirage-console-xen-backend < "3.0.1"
  266. mirage-console-xen-cli
  267. mirage-dns < "3.0.0"
  268. mirage-entropy < "0.5.0"
  269. mirage-entropy-xen < "0.2.0"
  270. mirage-flow >= "1.0.3" & < "1.2.0"
  271. mirage-flow-lwt
  272. mirage-flow-rawlink
  273. mirage-flow-unix < "2.0.0"
  274. mirage-fs-lwt
  275. mirage-fs-unix != "1.2.1"
  276. mirage-http
  277. mirage-http-unix
  278. mirage-http-xen
  279. mirage-kv-lwt
  280. mirage-kv-unix
  281. mirage-logs
  282. mirage-nat < "3.0.0"
  283. mirage-net-fd
  284. mirage-net-lwt
  285. mirage-net-macosx
  286. mirage-net-solo5
  287. mirage-net-unix
  288. mirage-net-xen
  289. mirage-os-shim >= "3.0.0"
  290. mirage-profile
  291. mirage-protocols-lwt
  292. mirage-qubes
  293. mirage-qubes-ipv4
  294. mirage-random-stdlib >= "0.1.0"
  295. mirage-solo5
  296. mirage-stack-lwt
  297. mirage-time-lwt
  298. mirage-time-unix < "2.0.0"
  299. mirage-types-lwt < "3.7.1"
  300. mirage-unix
  301. mirage-vnetif
  302. mirage-vnetif-stack
  303. mirage-www >= "1.1.0"
  304. mirage-xen
  305. mirror
  306. mpris = "0.1.1"
  307. mqtt >= "0.0.2"
  308. mrmime >= "0.5.0"
  309. multipart-form-data
  310. multipart_form >= "0.2.0" & < "0.4.0"
  311. multipart_form-lwt
  312. mwt
  313. named-pipe
  314. nanomsg
  315. nbd = "2.1.1" | >= "3.0.0"
  316. nbd-tool
  317. nbd-unix
  318. netchannel
  319. nocrypto >= "0.5.4"
  320. noise
  321. nottui-lwt
  322. nproc
  323. nsq
  324. obrowser
  325. obuilder < "0.4"
  326. obus >= "1.1.8" & < "1.2.1"
  327. ocaml-variants >= "4.00.1+mirage-unix" & < "4.00.1+open-types"
  328. ocluster < "0.2"
  329. ocluster-api < "0.2"
  330. ocplib-concur
  331. ocplib-resto
  332. ocsigen-start = "1.1.0" | >= "4.1.0" & < "4.7.0"
  333. ocsigen-toolkit = "1.1.0"
  334. ocsigenserver >= "2.9"
  335. odoc >= "2.0.0" & < "2.1.0"
  336. ojquery
  337. ojs-base < "0.6.0"
  338. opam-compiler
  339. opam-publish = "0.3.5"
  340. opam-sync-github-prs
  341. openflow < "0.2.0"
  342. opium >= "0.11.0" & < "0.19.0"
  343. opium_kernel
  344. order-i3-xfce
  345. ordma
  346. osc-lwt
  347. oskel >= "0.3.0"
  348. otetris
  349. ounit-lwt < "2.2.0"
  350. ounit2-lwt
  351. ox < "1.1.0"
  352. paf
  353. paf-cohttp
  354. pcap-format >= "0.3.3" & < "0.5.0"
  355. pgx_lwt
  356. pgx_lwt_mirage
  357. pgx_lwt_unix < "2.0"
  358. plotkicadsch
  359. ppx_defer >= "0.4.0"
  360. ppx_deriving_rpc
  361. ppx_json_types
  362. ppx_netblob
  363. ppx_rapper_lwt
  364. ppx_sqlexpr
  365. prof_spacetime
  366. prometheus
  367. prometheus-app
  368. protocol-9p >= "0.10.0"
  369. protocol-9p-unix
  370. pvem_lwt_unix >= "0.0.2"
  371. qcow < "0.11.0"
  372. qcow-format
  373. qcow-tool
  374. qfs >= "0.5" & < "0.7"
  375. quests
  376. rawlink < "2.1"
  377. rawlink-lwt
  378. redis-lwt
  379. resource-pooling
  380. resp >= "0.10.0"
  381. resp-mirage >= "0.10.0"
  382. resp-unix >= "0.10.0"
  383. resto
  384. resto-cohttp-client
  385. resto-cohttp-self-serving-client
  386. resto-cohttp-server
  387. resto-directory
  388. riak
  389. ringo-lwt
  390. river
  391. rpc >= "1.5.1" & < "7.1.0"
  392. rpclib-js
  393. rpclib-lwt
  394. sanddb
  395. scgi
  396. sendmail-lwt
  397. session-cohttp-lwt
  398. session-cookie-lwt
  399. session-postgresql-lwt
  400. sessions
  401. shared-block-ring
  402. shared-memory-ring < "2.0.0"
  403. shared-memory-ring-lwt
  404. skkserv-lite
  405. slacko
  406. socket-daemon
  407. spin < "0.6.0"
  408. spotify-web-api < "0.2.1"
  409. sqlexpr
  410. statsd-client
  411. stog >= "0.16.0" & < "0.19.0"
  412. syndic >= "1.4" & < "1.6.0"
  413. tar-format >= "0.4.1"
  414. tar-mirage < "2.2.0"
  415. tar-unix
  416. tcpip >= "3.1.1" & < "4.0.0"
  417. teash
  418. telegraml
  419. testrunner
  420. tezos-p2p >= "11.0" & < "13.0"
  421. tezos-stdlib < "9.0"
  422. tezos-stdlib-unix < "9.0"
  423. tftp
  424. themoviedb
  425. tls >= "0.10.1" & < "0.16.0"
  426. tls-lwt
  427. tls-mirage
  428. tlstunnel >= "0.2.0"
  429. transmission-rpc
  430. tube
  431. tuntap >= "1.0.0" & < "2.0.0"
  432. typerex-lldb
  433. u2f
  434. usb
  435. uspf
  436. uspf-lwt
  437. utop >= "1.4.0"
  438. uwt >= "0.0.2"
  439. vchan >= "0.9.6" & < "2.0.0" | >= "2.0.3"
  440. vchan-unix
  441. vchan-xen
  442. vercel
  443. vhd-format >= "0.6.0" & < "0.9.1"
  444. vhd-format-lwt >= "0.12.0"
  445. vhd-tool < "0.12.0"
  446. vmnet
  447. vpnkit >= "0.1.1"
  448. vue-jsoo < "0.3"
  449. webauthn
  450. websocket < "2.3"
  451. websocket-lwt = "2.11"
  452. xe-unikernel-upload
  453. xen-api-client < "0.9.14"
  454. xen-block-driver
  455. xen-evtchn
  456. xen-evtchn-unix
  457. xen-gnt
  458. xenctrl
  459. xenstore
  460. xenstore_transport
  461. xentropyd
  462. yurt != "0.3" & < "0.5"
  463. zbar
  464. zmq-lwt

Conflicts (2)

  1. dune >= "1.7.0"
  2. ocaml-variants = "4.02.1+BER"