package eliom

All checked builds pass
  1. Overview
  2. Docs
Advanced client/server Web and mobile framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

13.0.0.tar.gz
md5=904867e857f818f5bc950f6da588f060
sha512=2c40a53b955297b6cba603d1efb7bf9613a5b52555c940397ed1643165ae258dd59bfebed53c160b2cb63372e038121c5973616cab45e906a6c7bfc6f2d924c2

doc/eliom.server/Eliom/Reference/Ext/index.html

Module Reference.Ext

This module allows access to references for other groups, sessions, or client processes. Use it in conjunction with functions like State.Ext.iter_sub_states to get the sessions from a group (or the processes from a session).

val get : ([< `Session_group | `Session | `Client_process ], [< `Data | `Pers ]) State.Ext.state -> 'a eref -> 'a Lwt.t

get the value of a reference from outside the state. If the value has not been set yet for this state, it will raise exception Eref_not_initialized.

val set : ([< `Session_group | `Session | `Client_process ], [< `Data | `Pers ]) State.Ext.state -> 'a eref -> 'a -> unit Lwt.t
val modify : ([< `Session_group | `Session | `Client_process ], [< `Data | `Pers ]) State.Ext.state -> 'a eref -> ('a -> 'a) -> unit Lwt.t

Warning: the function will be executed with the current context

val unset : ([< `Session_group | `Session | `Client_process ], [< `Data | `Pers ]) State.Ext.state -> 'a eref -> unit Lwt.t