|
| System.Gnome.VFS.Cancellation | | Portability | portable (depends on GHC) | | Stability | alpha | | Maintainer | gtk2hs-devel@lists.sourceforge.net |
|
|
|
|
|
| Description |
|
|
| Synopsis |
|
|
|
|
| Types
|
|
|
| An object that can be used for signalling cancellation of an
operation.
|
|
|
| Cancellation creation
|
|
|
|
|
| Cancellation notification
|
|
|
|
|
|
| :: Cancellation | cancellation - the object to check for cancellation
| | -> IO Bool | True if cancellation has been requested, False otherwise
| | Check for pending cancellation.
|
|
|
|
|
|
| Other Operations
|
|
|
| :: Cancellation | cancellation - the object to get a file descriptor for
| | -> IO Fd | the file descriptor
| Get a file descriptor-based notificator for cancellation. When
cancellation receives a cancellation request, a character will be
made available on the returned file descriptor for input.
This is very useful for detecting cancellation during I/O
operations: you can use the select() call to check for available
input/output on the file you are reading/writing, and on the
notificator's file descriptor at the same time. If a data is
available on the notificator's file descriptor, you know you have
to cancel the read/write operation.
|
|
|
| Produced by Haddock version 2.6.0 |