Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
taskRunInThreadSync :: (HasCallStack, MonadIO m, IsTask a) => a -> TaskThreadFunc -> m ()gi-gio GI.Gio.Objects.Task Runs taskFunc in another thread, and waits for it to return or be cancelled. You can use taskPropagatePointer, etc, afterward to get the result of taskFunc. See TaskThreadFunc for more details about how taskFunc is handled. Normally this is used with tasks created with a Nothing callback, but note that even if the task does have a callback, it will not be invoked when taskFunc returns. Task:completed will be set to True just before this function returns. Although GLib currently rate-limits the tasks queued via taskRunInThreadSync, you should not assume that it will always do this. If you have a very large number of tasks to run, but don't want them to all run at once, you should only queue a limited number of them at a time. Since: 2.36
module GI.Gio.Objects.
ThreadedResolver ThreadedResolver is an implementation of Resolver which calls the libc lookup functions in threads to allow them to run asynchronously. Since: 2.20
class (GObject o, IsDescendantOf ThreadedResolver o) =>
IsThreadedResolver ogi-gio GI.Gio.Objects.ThreadedResolver Type class for types which can be safely cast to ThreadedResolver, for instance with toThreadedResolver.
-
gi-gio GI.Gio.Objects.ThreadedResolver Memory-managed wrapper type.
ThreadedResolver :: ManagedPtr ThreadedResolver -> ThreadedResolvergi-gio GI.Gio.Objects.ThreadedResolver No documentation available.
toThreadedResolver :: (MonadIO m, IsThreadedResolver o) => o -> m ThreadedResolvergi-gio GI.Gio.Objects.ThreadedResolver Cast to ThreadedResolver, for types for which this is known to be safe. For general casts, use castTo.
module GI.Gio.Objects.
ThreadedSocketService A GThreadedSocketService is a simple subclass of SocketService that handles incoming connections by creating a worker thread and dispatching the connection to it by emitting the signalgio.ThreadedSocketService[run signal] in the new thread. The signal handler may perform blocking I/O and need not return until the connection is closed. The service is implemented using a thread pool, so there is a limited amount of threads available to serve incoming requests. The service automatically stops the SocketService from accepting new connections when all threads are busy. As with SocketService, you may connect to ThreadedSocketService::run, or subclass and override the default handler. Since: 2.22
class (GObject o, IsDescendantOf ThreadedSocketService o) =>
IsThreadedSocketService ogi-gio GI.Gio.Objects.ThreadedSocketService Type class for types which can be safely cast to ThreadedSocketService, for instance with toThreadedSocketService.
-
gi-gio GI.Gio.Objects.ThreadedSocketService Memory-managed wrapper type.
ThreadedSocketService :: ManagedPtr ThreadedSocketService -> ThreadedSocketServicegi-gio GI.Gio.Objects.ThreadedSocketService No documentation available.