diff options
author | dakkar <dakkar@thenautilus.net> | 2010-07-11 20:34:02 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2010-07-11 20:34:02 +0100 |
commit | 6fc388b833ec0e924f663c11089b5c2b373ccf15 (patch) | |
tree | c9e2956ad06c7ef0d8b9e888e36fd88222da056d /lib/Thread/Task/Types.pm | |
download | Thread-Task-6fc388b833ec0e924f663c11089b5c2b373ccf15.tar.gz Thread-Task-6fc388b833ec0e924f663c11089b5c2b373ccf15.tar.bz2 Thread-Task-6fc388b833ec0e924f663c11089b5c2b373ccf15.zip |
start
Diffstat (limited to 'lib/Thread/Task/Types.pm')
-rw-r--r-- | lib/Thread/Task/Types.pm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Thread/Task/Types.pm b/lib/Thread/Task/Types.pm new file mode 100644 index 0000000..8a4d044 --- /dev/null +++ b/lib/Thread/Task/Types.pm @@ -0,0 +1,25 @@ +package Thread::Task::Types; +use MooseX::Types + -declare => + [qw( + Handle_T + Worker_T + Task_T + Conduit_T + Finished_ET + Queue_T + Queue_Ev_T + )]; + +class_type Handle_T, { class => 'Thread::Task::Handle' }; +class_type Worker_T, { class => 'Thread::Task::Worker' }; +class_type Task_T, { class => 'Thread::Task' }; + +role_type Conduit_T, { role => 'Thread::Task::Role::Conduit' }; + +class_type Finished_ET, { class => 'Thread::Task::Exception::Finished' }; + +class_type Queue_T, { class => 'Thread::Queue' }; +class_type Queue_Ev_T, { class => 'Thread::Queue::Event' }; + +1; |